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)
'宣告
Property Protection As MsoBarProtection
MsoBarProtection Protection { get; set; }
Type: Microsoft.VisualStudio.CommandBars.MsoBarProtection
Always returns msoBarNoProtection.
Attempting to set this property with any other value will cause an exception to be thrown.
- 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.