System.Runtime.InteropServices.MarshalAsAttribute.SafeArraySubType Field

Indicates the element type of the UnmanagedType.SafeArray.

Syntax

public VarEnum SafeArraySubType

Remarks

You can set this field to a value from the System.Runtime.InteropServices.VarEnum enumeration to specify the type of the safe array's elements. If a type is not specified, the managed element type's default type (if passed as a VARIANT) is used. For example, the SafeArraySubType for an int array in COM is VarEnum.VT_I4. 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