Executes the command.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
<EnvironmentPermissionAttribute(SecurityAction.LinkDemand, Unrestricted := True)> _
Public Overridable Sub Invoke ( _
inArg As Object, _
outArg As IntPtr _
)
'使用
Dim instance As OleMenuCommand
Dim inArg As Object
Dim outArg As IntPtr
instance.Invoke(inArg, outArg)
[EnvironmentPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public virtual void Invoke(
Object inArg,
IntPtr outArg
)
[EnvironmentPermissionAttribute(SecurityAction::LinkDemand, Unrestricted = true)]
public:
virtual void Invoke(
Object^ inArg,
IntPtr outArg
)
public function Invoke(
inArg : Object,
outArg : IntPtr
)
Parameters
inArg
Type: System.ObjectThe parameter passed to the command.
outArg
Type: System.IntPtrThe parameter returned by the command.
Permissions
- 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.