Cocktail Help Reference
UICommand Constructor(String,Boolean,Boolean)
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > UICommand Class > UICommand Constructor : UICommand Constructor(String,Boolean,Boolean)



label
The label of the command.
isDefaultCommand
True if command is the default command.
isCancelCommand
True if the command is used to cancel.

Glossary Item Box

Creates a new instance of the UICommand class.

Syntax

Visual Basic (Declaration) 
Protected Function New( _
   ByVal label As String, _
   Optional ByVal isDefaultCommand As Boolean, _
   Optional ByVal isCancelCommand As Boolean _
)
Visual Basic (Usage)Copy Code
Dim label As String
Dim isDefaultCommand As Boolean
Dim isCancelCommand As Boolean
 
Dim instance As New UICommand(label, isDefaultCommand, isCancelCommand)
C# 
protected UICommand( 
   string label,
   bool isDefaultCommand,
   bool isCancelCommand
)
C++/CLI 
protected:
UICommand( 
   String^ label,
   bool isDefaultCommand,
   bool isCancelCommand
)

Parameters

label
The label of the command.
isDefaultCommand
True if command is the default command.
isCancelCommand
True if the command is used to cancel.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.