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 

欄位值

屬性

備註

您可以使用 MarshalTypeMarshalAsAttribute.MarshalTypeRef 欄位,為屬性化參數、欄位或傳回型別指定自定義封送處理器類型。 欄位 MarshalType 可讓您指定代表自訂封送處理器完整名稱的字串。 它適用於晚期綁定參考,但較 MarshalTypeRef 不偏好指定自定義封送處理器。 如需建立和使用自定義封送處理器的其他資訊,請參閱 自定義封送處理

適用於

另請參閱