共用方式為


CommandStatus Constructor

Initializes a new instance of the CommandStatus class by using the provided indications of whether the command is visible and whether it is enabled.

Namespace:  Microsoft.VisualStudio.TestTools.Vsip
Assembly:  Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)

Syntax

'宣告
Public Sub New ( _
    visible As Boolean, _
    enabled As Boolean _
)
public CommandStatus(
    bool visible,
    bool enabled
)
public:
CommandStatus(
    bool visible, 
    bool enabled
)
new : 
        visible:bool * 
        enabled:bool -> CommandStatus
public function CommandStatus(
    visible : boolean, 
    enabled : boolean
)

Parameters

  • visible
    Type: System.Boolean
    true if the command is visible; otherwise, false.
  • enabled
    Type: System.Boolean
    true if the command is enabled; otherwise, false.

.NET Framework Security

See Also

Reference

CommandStatus Class

Microsoft.VisualStudio.TestTools.Vsip Namespace