Condividi tramite


CommandBar.Protection Property

Gets or sets the protection level of this command bar.

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

Syntax

'Dichiarazione
Property Protection As MsoBarProtection
    Get
    Set
'Utilizzo
Dim instance As CommandBar
Dim value As MsoBarProtection

value = instance.Protection

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

Property Value

Type: Microsoft.VisualStudio.CommandBars.MsoBarProtection
Always returns msoBarNoProtection.

Remarks

Attempting to set this property with any other value will cause an exception to be thrown.

.NET Framework Security

See Also

Reference

CommandBar Interface

CommandBar Members

Microsoft.VisualStudio.CommandBars Namespace