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的表示封送處理資訊會套用至 [][]的Managed類型,ElementIndirectionDepth則1的會套用至[] 的 Managed 類型Int32,而 ElementIndirectionDepth 2 的會套用至 的 Managed 型Int32Int32別。 在指定的參數或傳回值上只能提供一個 MarshalUsingAttribute 具有指定的 ElementIndirectionDepth

適用於