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的表示封送處理資訊會套用至 [][]的Managed類型,ElementIndirectionDepth則1的會套用至[] 的 Managed 類型Int32,而 ElementIndirectionDepth 2 的會套用至 的 Managed 型Int32Int32別。 在指定的參數或傳回值上只能提供一個 MarshalUsingAttribute 具有指定的 ElementIndirectionDepth 。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應