The members of System.Runtime.InteropServices.MarshalAsAttribute are listed below.
See Also: Inherited members from System.Attribute
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.
ArraySubType UnmanagedType. A System.Runtime.InteropServices.UnmanagedType enumeration value that specifies the type of elements in an array. IidParameterIndex int. Documentation for this section has not yet been entered. MarshalCookie string. 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. MarshalType string. A string that identifies the Type of a custom marshaler. MarshalTypeRef Type. Specifies the managed Type of the argument being marshaled. SafeArraySubType VarEnum. Documentation for this section has not yet been entered. SafeArrayUserDefinedSubType Type. Documentation for this section has not yet been entered. SizeConst int. A int that specifies the size, in bytes, of the constant size array being marshaled. SizeParamIndex short. A short that identifies the position (starting with zero) of the method argument that identifies the size of the array being marshaled.
[read-only] Value UnmanagedType. Gets the System.Runtime.InteropServices.UnmanagedType value the data is to be marshaled as.