Partager via


OleMenuCommand.Invoke Method (Object)

Executes the command.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Déclaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Public Overrides Sub Invoke ( _
    inArg As Object _
)
'Utilisation
Dim instance As OleMenuCommand
Dim inArg As Object

instance.Invoke(inArg)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public override void Invoke(
    Object inArg
)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
public:
virtual void Invoke(
    Object^ inArg
) override
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
abstract Invoke : 
        inArg:Object -> unit 
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
override Invoke : 
        inArg:Object -> unit 
public override function Invoke(
    inArg : Object
)

Parameters

.NET Framework Security

See Also

Reference

OleMenuCommand Class

OleMenuCommand Members

Invoke Overload

Microsoft.VisualStudio.Shell Namespace