CommandBarButtonClass.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
'宣告
Public Overridable Property State As MsoButtonState
Get
Set
'用途
Dim instance As CommandBarButtonClass
Dim value As MsoButtonState
value = instance.State
instance.State = value
public virtual MsoButtonState State { get; set; }
public:
virtual property MsoButtonState State {
MsoButtonState get ();
void set (MsoButtonState value);
}
abstract State : MsoButtonState with get, set
override 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.
Implements
Remarks
This property throws a DeprecatedException.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.