共用方式為


CommandBarButtonClass.Tag Property

Gets or sets the tag.

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

Syntax

'宣告
Public Overridable Property Tag As String
    Get
    Set
'用途
Dim instance As CommandBarButtonClass
Dim value As String

value = instance.Tag

instance.Tag = value
public virtual string Tag { get; set; }
public:
virtual property String^ Tag {
    String^ get ();
    void set (String^ value);
}
abstract Tag : string with get, set
override Tag : string with get, set
function get Tag () : String
function set Tag (value : String)

Property Value

Type: System.String
Always returns the empty string.

Implements

_CommandBarButton.Tag

Remarks

Tags are not supported in Visual Studio.

.NET Framework Security

See Also

Reference

CommandBarButtonClass Class

CommandBarButtonClass Members

Microsoft.VisualStudio.CommandBars Namespace