MarshalAsAttribute.Value 屬性

定義

取得資料要封送處理成的 UnmanagedType 值。

public:
 property System::Runtime::InteropServices::UnmanagedType Value { System::Runtime::InteropServices::UnmanagedType get(); };
public System.Runtime.InteropServices.UnmanagedType Value { get; }
member this.Value : System.Runtime.InteropServices.UnmanagedType
Public ReadOnly Property Value As UnmanagedType

屬性值

資料要封送處理成的 UnmanagedType 值。

備註

這個值會與 搭配 MarshalAsAttribute 使用,以指出應該如何在 Managed 和 Unmanaged 程式代碼之間封送處理類型。 在某些情況下,您可以將此字段與特定 UnmanagedType 列舉成員搭配使用。 針對 CustomMarshalerByValArray,您必須使用其他具名參數。

適用於