MarshalAsAttribute.Value Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.