MarshalAsAttribute.MarshalType フィールド

定義

カスタム マーシャラーの完全修飾名を指定します。

public: System::String ^ MarshalType;
public string MarshalType;
public string? MarshalType;
[System.Runtime.InteropServices.ComVisible(true)]
public string MarshalType;
val mutable MarshalType : string
[<System.Runtime.InteropServices.ComVisible(true)>]
val mutable MarshalType : string
Public MarshalType As String 

フィールド値

属性

注釈

MarshalTypeまたはMarshalAsAttribute.MarshalTypeRefフィールドを使用して、属性付きパラメーター、フィールド、または戻り値の型にカスタム マーシャラー型を指定できます。 MarshalType フィールドを使用すると、カスタム マーシャラーの完全修飾名を表す文字列を指定できます。 これは遅延バインディング参照に役立ちますが、カスタム マーシャラーを指定する MarshalTypeRef よりも優先されません。

適用対象

こちらもご覧ください