IMethodMessage.Args 属性

定义

获取传递给该方法的参数数组。Gets an array of arguments passed to the method.

public:
 property cli::array <System::Object ^> ^ Args { cli::array <System::Object ^> ^ get(); };
[get: System.Security.SecurityCritical]
public object[] Args { get; }
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.

注解

尽管属性是冗余的, 但可以ArgCount通过和GetArg实现相同的功能, 因此, 如果实施者理解所有参数都将Args获得.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.

安全性

SecurityPermission
用于处理基础结构代码。for operating with infrastructure code. 要求值: LinkDemand;权限值:InfrastructureDemand value: LinkDemand; Permission value: Infrastructure

适用于