Skip to content
Docs Try Aspire

AspireUnionAttribute Constructors

Class Constructors 1 member
Specifies that a parameter or property accepts a union of multiple ATS types.
Initializes a new instance with the types that form the union.
public sealed class AspireUnionAttribute
{
public AspireUnionAttribute(
params Type[] types)
{
// ...
}
}
types Type[] The CLR types that form the union. Must have at least 2 types.
ArgumentNullException Thrown when types is null.
ArgumentException Thrown when types has fewer than 2 types.