System.Runtime.InteropServices.MarshalAsAttribute Members

The members of System.Runtime.InteropServices.MarshalAsAttribute are listed below.

See Also: Inherited members from System.Attribute

Public Constructors

Public Fields

ArraySubTypeUnmanagedType.

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

IidParameterIndexint.

Specifies the parameter index of the unmanaged iid_is attribute used by COM.

MarshalCookiestring.

Provides additional information to a custom marshaler.

MarshalTypestring.

Specifies the fully qualified name of a custom marshaler.

MarshalTypeRefType.

Implements MarshalAsAttribute.MarshalType as a type.

SafeArraySubTypeVarEnum.

Indicates the element type of the UnmanagedType.SafeArray.

SafeArrayUserDefinedSubTypeType.

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

SizeConstint.

Indicates the number of elements in the fixed-length array or the number of characters (not bytes) in a string to import.

SizeParamIndexshort.

Indicates the zero-based parameter that contains the count of array elements, similar to size_is in COM.

Public Properties

[read-only]
ValueUnmanagedType.

Gets the System.Runtime.InteropServices.UnmanagedType value the data is to be marshaled as.