Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

MarshalAsAttribute.SafeArrayUserDefinedSubType Field

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

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

public Type SafeArrayUserDefinedSubType

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft