[Serializable] |
| BaseType | Read-only Gets an unmanaged base type. This property is read-only. |
| ElementCount | Read-only Gets a number element. This property is read-only. |
| GetUnmanagedType | Read-only Indicates an unmanaged type. This property is read-only. |
| IIDGuid | Read-only Gets a GUID. This property is read-only. |
| DefineByValArray | Specifies a fixed-length array (ByValArray) to marshal to unmanaged code. |
| DefineByValTStr | Specifies a string in a fixed array buffer (ByValTStr) to marshal to unmanaged code. |
| DefineLPArray | Specifies an LPArray to marshal to unmanaged code. The length of an LPArray is determined at runtime by the size of the actual marshaled array. |
| DefineUnmanagedMarshal | Specifies a given type that is to be marshaled to unmanaged code. |
| Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
| GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
| GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
| ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
| Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
| MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public UnmanagedType BaseType {get;}
|
| Exception Type | Condition |
|---|---|
| ArgumentException | The unmanaged type is not an LPArray or a SafeArray. |
public int ElementCount {get;}
|
| Exception Type | Condition |
|---|---|
| ArgumentException | The argument is not an unmanaged element count. |
public UnmanagedType GetUnmanagedType {get;}
|
public Guid IIDGuid {get;}
|
| Exception Type | Condition |
|---|---|
| ArgumentException | The argument is not a custom marshaler. |
public static UnmanagedMarshal DefineByValArray( |
elemCount
| Exception Type | Condition |
|---|---|
| ArgumentException | The argument is not a simple native type. |
Only unmanaged marshal constructs can be made using these static constructors.
Marshaling an array is a more complex process than marshaling an integer parameter. Array members are copied in a specific order so that the other side can reconstruct the array exactly.
public static UnmanagedMarshal DefineByValTStr( |
elemCount
| Exception Type | Condition |
|---|---|
| ArgumentException | The argument is not a simple native type. |
Only unmanaged marshal constructs can be made using these static constructors.
Marshaling an array is a more complex process than marshaling an integer parameter. Array members are copied in a specific order so that the other side can reconstruct the array exactly.
public static UnmanagedMarshal DefineLPArray( |
elemType
| Exception Type | Condition |
|---|---|
| ArgumentException | The argument is not a simple native type. |
Only unmanaged marshal constructs can be made using these static constructors.
Marshaling an array is a more complex process than marshaling an integer parameter. Array members are copied in a specific order so that the other side can reconstruct the array exactly.
public static UnmanagedMarshal DefineUnmanagedMarshal( |
unmanagedType
| Exception Type | Condition |
|---|---|
| ArgumentException | The argument is not a simple native type. |
~UnmanagedMarshal(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual string ToString(); |