MarshalUsingAttribute.ElementIndirectionDepth 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置为此封送处理信息提供的间接深度。
public:
property int ElementIndirectionDepth { int get(); void set(int value); };
public int ElementIndirectionDepth { get; set; }
member this.ElementIndirectionDepth : int with get, set
Public Property ElementIndirectionDepth As Integer
属性值
注解
此值对应于从本机表示形式获取相应值所需的指针间接寻址数。 例如,如果此属性位于类型Int32为 [][] 的参数上,则 ElementIndirectionDepth 为 0 的 表示封送信息适用于 [][] 的Int32托管类型,ElementIndirectionDepth值为 1 的 适用于 []的托管类型,ElementIndirectionDepth而 2 的 Int32则应用于 的托管类型Int32。 MarshalUsingAttribute对于给定ElementIndirectionDepth的参数或返回值,只能提供具有给定的一个。