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 來表示類型應如何在受管理與非受管理程式碼間編組。 在某些情況下,你可以將此欄位用於特定的 UnmanagedType 列舉成員。 對於 CustomMarshalerByValArray,你必須使用額外的命名參數。

適用於