MarshalAsAttribute::SafeArrayUserDefinedSubType Field

 

Indicates the user-defined element type of the UnmanagedType::SafeArray.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public:
Type^ SafeArrayUserDefinedSubType

Field Value

Type: System::Type^

Initialize this field with your custom type to enable the elements of the SAFEARRAY to be marshaled successfully. This field is only needed when the MarshalAsAttribute::SafeArraySubType is either VarEnum::VT_UNKNOWN, VarEnum::VT_DISPATCH, or VarEnum::VT_RECORD. For additional information, see Default Marshaling for Arrays.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: