System.Runtime.InteropServices.MarshalAsAttribute.ArraySubType Field

Specifies the element type of the unmanaged UnmanagedType.LPArray or UnmanagedType.ByValArray.

Syntax

public UnmanagedType ArraySubType

Remarks

You can set this parameter to a value from the System.Runtime.InteropServices.UnmanagedType enumeration to specify the type of the array's elements. If a type is not specified, the default unmanaged type corresponding to the managed array's element type is used. For example, the ArraySubType for a LPWStr array in COM is UnmanagedType.LPWStr. 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