_CommandBars.ActionControl Property
Gets the CommandBarControl whose OnAction event initiated the procedure that is currently running.
Namespace: Microsoft.VisualStudio.CommandBars
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
'宣告
ReadOnly Property ActionControl As CommandBarControl
Get
'用途
Dim instance As _CommandBars
Dim value As CommandBarControl
value = instance.ActionControl
CommandBarControl ActionControl { get; }
property CommandBarControl^ ActionControl {
CommandBarControl^ get ();
}
abstract ActionControl : CommandBarControl
function get ActionControl () : CommandBarControl
Property Value
Type: Microsoft.VisualStudio.CommandBars.CommandBarControl
The CommandBarControl.
Remarks
If the macro wasn't initiated by a command bar control, this property returns nulla null reference (Nothing in Visual Basic).
.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.