MarshalAsAttribute Members
.NET Framework 2.0
Indicates how to marshal the data between managed and unmanaged code.
The following tables list the members exposed by the MarshalAsAttribute type.
| Name | Description | |
|---|---|---|
| MarshalAsAttribute | Overloaded. Initializes a new instance of the MarshalAsAttribute class. |
| Name | Description | |
|---|---|---|
| ArraySubType | Specifies the element type of the unmanaged UnmanagedType.LPArray or UnmanagedType.ByValArray. |
| IidParameterIndex | Specifies the parameter index of the unmanaged iid_is attribute used by COM. |
| MarshalCookie | Provides additional information to a custom marshaler. |
| MarshalType | Specifies the fully qualified name of a custom marshaler. |
| MarshalTypeRef | Implements MarshalAsAttribute.MarshalType as a type. |
| SafeArraySubType | Indicates the element type of the UnmanagedType.SafeArray. |
| SafeArrayUserDefinedSubType | Indicates the user-defined element type of the UnmanagedType.SafeArray. |
| SizeConst | Indicates the number of elements in the fixed-length array or the number of characters (not bytes) in a string to import. |
| SizeParamIndex | Indicates which parameter contains the count of array elements, much like size_is in COM, and is zero-based. |
| Name | Description | |
|---|---|---|
| Equals | Overloaded. (Inherited from Attribute.) |
| GetCustomAttribute | Overloaded. Retrieves a custom attribute of a specified type applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.) |
| GetCustomAttributes | Overloaded. Retrieves an array of the custom attributes applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.) |
| GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) |
| IsDefined | Overloaded. Determines whether any custom attributes of a specified type are applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.) |
| Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |