次の方法で共有


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

'宣言
Property Protection As MsoBarProtection
MsoBarProtection Protection { get; set; }

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

Microsoft.VisualStudio.CommandBars Namespace