IMethodMessage.Args 属性

定义

获取传递给该方法的参数数组。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; }
[get: System.Security.SecurityCritical]
public object[] Args { get; }
member this.Args : obj[]
[<get: System.Security.SecurityCritical>]
member this.Args : obj[]
Public ReadOnly Property Args As Object()

属性值

Object[]

Object 数组,它包含传递给该方法的参数。An Object array containing the arguments passed to the method.

属性

例外

直接调用方通过引用接口进行调用,且没有基础结构权限。The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.

注解

尽管 Args 属性是冗余的,但可以通过和实现相同的功能 ArgCount GetArg ,但如果实施者了解将检索所有参数时,可以使用性能优化。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.

适用于