System.Runtime.InteropServices.MarshalAsAttribute.SafeArrayUserDefinedSubType Field

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

Syntax

public Type SafeArrayUserDefinedSubType

Remarks

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 [<topic://cpcondefaultmarshalingforarrays>].

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0