CommandBarControl.OnAction Property

Definition

Gets or sets the OnAction string.

public:
 property System::String ^ OnAction { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ OnAction { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(1610874906)]
public string OnAction { [System.Runtime.InteropServices.DispId(1610874906)] get; [System.Runtime.InteropServices.DispId(1610874906)] set; }
[<System.Runtime.InteropServices.DispId(1610874906)>]
[<get: System.Runtime.InteropServices.DispId(1610874906)>]
[<set: System.Runtime.InteropServices.DispId(1610874906)>]
member this.OnAction : string with get, set
Public Property OnAction As String

Property Value

The string.

Attributes

Remarks

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

Applies to