Table of Contents

Class IgnoreTypeAttribute

Namespace
Qt
Assembly
Qt.Bridge.CSharp.Api.dll

Excludes one or more types from Qt Bridge code generation for the annotated assembly.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class IgnoreTypeAttribute : Attribute
Inheritance
IgnoreTypeAttribute
Inherited Members

Remarks

Apply this attribute at assembly scope to remove exact types, external types, or generic type definitions from the generated bridge surface. When Inherited is set to true, derived classes and interface implementers are excluded as well. If another generated type references an excluded type through a property, field, parameter, return value, or event payload, that member is excluded too.

Constructors

IgnoreTypeAttribute(params string[])

Initializes the attribute with one or more type names to exclude.

public IgnoreTypeAttribute(params string[] excludedTypeNames)

Parameters

excludedTypeNames string[]

Assembly-qualified or fully-qualified type names to exclude. This is useful when the target type cannot be referenced directly in source code.

IgnoreTypeAttribute(params Type[])

Initializes the attribute with one or more types to exclude.

public IgnoreTypeAttribute(params Type[] excludedTypes)

Parameters

excludedTypes Type[]

Exact runtime types or open generic type definitions to exclude from generation.

Properties

Inherited

Gets or sets whether the exclusion also applies to derived types and implementers.

public bool Inherited { get; set; }

Property Value

bool