Export (0) Print
Expand All

MarshalAsAttribute Members

Indicates how to marshal the data between managed and unmanaged code.

The following tables list the members exposed by the MarshalAsAttribute type.

  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework MarshalAsAttribute Overloaded. Initializes a new instance of the MarshalAsAttribute class.
Top

  Name Description
Public field Supported by the .NET Compact Framework Supported by the XNA Framework ArraySubType Specifies the element type of the unmanaged UnmanagedType.LPArray or UnmanagedType.ByValArray.
Public field IidParameterIndex Specifies the parameter index of the unmanaged iid_is attribute used by COM.
Public field Supported by the .NET Compact Framework MarshalCookie Provides additional information to a custom marshaler.
Public field Supported by the .NET Compact Framework MarshalType Specifies the fully qualified name of a custom marshaler.
Public field Supported by the .NET Compact Framework MarshalTypeRef Implements MarshalAsAttribute.MarshalType as a type.
Public field Supported by the .NET Compact Framework SafeArraySubType Indicates the element type of the UnmanagedType.SafeArray.
Public field Supported by the .NET Compact Framework SafeArrayUserDefinedSubType Indicates the user-defined element type of the UnmanagedType.SafeArray.
Public field Supported by the .NET Compact Framework Supported by the XNA Framework SizeConst Indicates the number of elements in the fixed-length array or the number of characters (not bytes) in a string to import.
Public field Supported by the .NET Compact Framework Supported by the XNA Framework SizeParamIndex Indicates which parameter contains the count of array elements, much like size_is in COM, and is zero-based.
Top

  Name Description
Public property TypeId  When implemented in a derived class, gets a unique identifier for this Attribute.(inherited from Attribute)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Value Gets the UnmanagedType value the data is to be marshaled as.
Top

  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals  Overloaded. Returns a value indicating whether two instances of Attribute represent the same value. (inherited from Attribute)
Public method Static Supported by the .NET Compact Framework GetCustomAttribute  Overloaded. Retrieves a custom attribute of a specified type applied to an assembly, module, type member, or method parameter. (inherited from Attribute)
Public method Static Supported by the .NET Compact Framework GetCustomAttributes  Overloaded. Retrieves an array of the custom attributes applied to an assembly, module, type member, or method parameter. (inherited from Attribute)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode  Returns the hash code for this instance. (inherited from Attribute)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method 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)
Public method Static Supported by the .NET Compact Framework 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)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Match  When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (inherited from Attribute)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft