Szerkesztés

Megosztás a következőn keresztül:


MarshalAsAttribute.Value Property

Definition

Gets the UnmanagedType value the data is to be marshaled as.

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

Property Value

The UnmanagedType value the data is to be marshaled as.

Remarks

This value is used with MarshalAsAttribute to indicate how types should be marshaled between managed and unmanaged code. In some cases, you can use this field with certain UnmanagedType enumeration members. For CustomMarshaler and ByValArray, you must use additional named parameters.

Applies to