Condividi tramite


_CommandBarButton.State Property

Gets or sets the state. This property is deprecated.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'Dichiarazione
Property State As MsoButtonState
    Get
    Set
'Utilizzo
Dim instance As _CommandBarButton
Dim value As MsoButtonState

value = instance.State

instance.State = value
MsoButtonState State { get; set; }
property MsoButtonState State {
    MsoButtonState get ();
    void set (MsoButtonState value);
}
abstract State : MsoButtonState with get, set
function get State () : MsoButtonState
function set State (value : MsoButtonState)

Property Value

Type: Microsoft.VisualStudio.CommandBars.MsoButtonState
The state. This property is deprecated.

Remarks

This property throws a DeprecatedException.

.NET Framework Security

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Microsoft.VisualStudio.CommandBars Namespace