Mono Class Library: Overview

System.Runtime.InteropServices.MarshalAsAttribute: Members

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

See Also: Inherited members from System.Attribute

Public Constructors

Constructs and initializes a new instance of the System.Runtime.InteropServices.MarshalAsAttribute class with the specified value.
Constructs and initializes a new instance of the System.Runtime.InteropServices.MarshalAsAttribute class with the specified System.Runtime.InteropServices.UnmanagedType value.

Public Fields

ArraySubTypeUnmanagedType. A System.Runtime.InteropServices.UnmanagedType enumeration value that specifies the type of elements in an array.
IidParameterIndexint. Documentation for this section has not yet been entered.
MarshalCookiestring. A string that is used with UnmanagedType.CustomMarshaler to hold a cookie that is passed to the custom marshaler. The value of the cookie is defined by the custom marshaler implementation.
MarshalTypestring. A string that identifies the Type of a custom marshaler.
MarshalTypeRefType. Specifies the managed Type of the argument being marshaled.
SafeArraySubTypeVarEnum. Documentation for this section has not yet been entered.
SafeArrayUserDefinedSubTypeType. Documentation for this section has not yet been entered.
SizeConstint. A int that specifies the size, in bytes, of the constant size array being marshaled.
SizeParamIndexshort. A short that identifies the position (starting with zero) of the method argument that identifies the size of the array being marshaled.

Public Properties

[read-only]
ValueUnmanagedType. Gets the System.Runtime.InteropServices.UnmanagedType value the data is to be marshaled as.