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.​Marshalling.​MarshalUsingAttribute
Assembly: System.Runtime.InteropServices
Inheritance: object → Attribute → MarshalUsingAttribute
Attribute used to provide a custom marshaller type or size information for marshalling.
Fields and Constants
public const
string
ReturnsCountValue
A constant string that represents the name of the return value for <see cref="P:System.Runtime.InteropServices.Marshalling.MarshalUsingAttribute.CountElementName" /> .
Properties
public
Type
NativeType
Gets the marshaller type used to convert the attributed type from managed to native code.
public
string
CountElementName
Gets or sets the name of the parameter that will provide the size of the collection when marshalling from unmanaged to managed, or <see cref="F:System.Runtime.InteropServices.Marshalling.MarshalUsingAttribute.ReturnsCountValue" /> if the return value provides the size.
public
int
ConstantElementCount
If a collection is constant size, gets or sets the size of the collection when marshalling from unmanaged to managed.
public
int
ElementIndirectionDepth
Gets or sets the indirection depth this marshalling info is provided for.
public
object
TypeId
Methods
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object