This documentation is archived and is not being maintained.

MenuCommand.Invoke Method (Object)

Invokes the command with the given parameter.

Namespace: System.ComponentModel.Design
Assembly: System (in system.dll)

public virtual void Invoke (
	Object arg
public void Invoke (
	Object arg
public function Invoke (
	arg : Object
Not applicable.



An optional argument for use by the command.

Notes to Inheritors: The default implementation of this method ignores arg, but deriving classes may override this method and use it.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0