Edit

Share via


IMethodMessage.Args Property

Definition

Gets an array of arguments passed to the method.

public:
 property cli::array <System::Object ^> ^ Args { cli::array <System::Object ^> ^ get(); };
public object[] Args { get; }
public object[] Args { [System.Security.SecurityCritical] get; }
member this.Args : obj[]
[<get: System.Security.SecurityCritical>]
member this.Args : obj[]
Public ReadOnly Property Args As Object()

Property Value

Object[]

An Object array containing the arguments passed to the method.

Attributes

Exceptions

The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.

Remarks

Although the Args property is redundant since the same functionality can be achieved through the ArgCount and GetArg, there might be performance optimization available if the implementer understands when all the arguments will be retrieved.

Applies to