MarshalUsingAttribute.ElementIndirectionDepth 属性

定义

获取或设置为此封送处理信息提供的间接深度。

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则应用于 的托管类型Int32MarshalUsingAttribute对于给定ElementIndirectionDepth的参数或返回值,只能提供具有给定的一个。

适用于