Condividi tramite


CommandBarPopup.OnAction Property

Gets or sets the OnAction string.

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

Syntax

'Dichiarazione
Property OnAction As String
    Get
    Set
'Utilizzo
Dim instance As CommandBarPopup
Dim value As String

value = instance.OnAction

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

Property Value

Type: System.String
The string.

Implements

CommandBarControl.OnAction

Remarks

Since a popup is not a CommandBarButton, this method throws a COMException:"Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))".

.NET Framework Security

See Also

Reference

CommandBarPopup Interface

CommandBarPopup Members

OnAction Overload

Microsoft.VisualStudio.CommandBars Namespace