Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Runtime.​InteropServices.​MarshalAsAttribute
Assembly: System.Runtime.InteropServices
Inheritance: object → Attribute → MarshalAsAttribute
Indicates how to marshal the data between managed and unmanaged code.
Fields and Constants
public
UnmanagedType
ArraySubType
Specifies the element type of the unmanaged <see cref="F:System.Runtime.InteropServices.UnmanagedType.LPArray" /> or <see cref="F:System.Runtime.InteropServices.UnmanagedType.ByValArray" /> .
public
int
IidParameterIndex
Specifies the parameter index of the unmanaged <see langword="iid_is" /> attribute used by COM.
public
string
MarshalCookie
Provides additional information to a custom marshaler.
public
string
MarshalType
Specifies the fully qualified name of a custom marshaler.
public
Type
MarshalTypeRef
Implements <see cref="F:System.Runtime.InteropServices.MarshalAsAttribute.MarshalType" /> as a type.
public
VarEnum
SafeArraySubType
Indicates the element type of the <see cref="F:System.Runtime.InteropServices.UnmanagedType.SafeArray" /> .
public
Type
SafeArrayUserDefinedSubType
Indicates the user-defined element type of the <see cref="F:System.Runtime.InteropServices.UnmanagedType.SafeArray" /> .
public
int
SizeConst
Indicates the number of elements in the fixed-length array or the number of characters (not bytes) in a string to import.
public
short
SizeParamIndex
Indicates the zero-based parameter that contains the count of array elements, similar to <see langword="size_is" /> in COM.
Properties
public
UnmanagedType
Value
Gets the <see cref="T:System.Runtime.InteropServices.UnmanagedType" /> value the data is to be marshaled as.
public
object
TypeId
Methods
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object