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



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( _
   Optional ByVal isDefaultCommand As Boolean, _
   Optional ByVal isCancelCommand As Boolean _
)
Visual Basic (Usage)Copy Code
Dim isDefaultCommand As Boolean
Dim isCancelCommand As Boolean
 
Dim instance As New UICommand(isDefaultCommand, isCancelCommand)
C# 
protected UICommand( 
   bool isDefaultCommand,
   bool isCancelCommand
)
C++/CLI 
protected:
UICommand( 
   bool isDefaultCommand,
   bool isCancelCommand
)

Parameters

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.