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.​GeneratedComInterfaceAttribute

Assembly: System.Runtime.InteropServices

Inheritance: object → Attribute → GeneratedComInterfaceAttribute

Specifies that the attributed type is a COM interface and that the source generator should generate code for it.

Properties

Options
Options for how to generate COM interface interop with the COM interop source generator.
StringMarshalling
Gets or sets a value that specifies how to marshal string arguments to all methods on the interface. If the attributed interface inherits from another interface with <see cref="T:System.Runtime.InteropServices.Marshalling.GeneratedComInterfaceAttribute" /> , it must have the same values for <see cref="P:System.Runtime.InteropServices.Marshalling.GeneratedComInterfaceAttribute.StringMarshalling" /> and <see cref="P:System.Runtime.InteropServices.Marshalling.GeneratedComInterfaceAttribute.StringMarshallingCustomType" /> .
public Type
StringMarshallingCustomType
Gets or sets the <see cref="T:System.Type" /> used to control how string arguments are marshalled for all methods on the interface. If the attributed interface inherits from another interface with <see cref="T:System.Runtime.InteropServices.Marshalling.GeneratedComInterfaceAttribute" /> , it must have the same values for <see cref="P:System.Runtime.InteropServices.Marshalling.GeneratedComInterfaceAttribute.StringMarshalling" /> and <see cref="P:System.Runtime.InteropServices.Marshalling.GeneratedComInterfaceAttribute.StringMarshallingCustomType" /> .
public Type
ExceptionToUnmanagedMarshaller
Gets or sets the <see cref="T:System.Type" /> used to control how exceptions are marshalled for all methods on the interface.
public object
TypeId

Methods

public bool
Equals​(object obj)
Inherited from Attribute
public int
GetHashCode​()
Inherited from Attribute
public bool
IsDefaultAttribute​()
Inherited from Attribute
public bool
Match​(object obj)
Inherited from Attribute
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object