Skip to content
DocsTry Aspire
DocsTry

AspireUnionAttribute Constructors

ClassConstructors1 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)
{
// ...
}
}
typesType[]The CLR types that form the union. Must have at least 2 types.
ArgumentNullExceptionThrown when types is null.
ArgumentExceptionThrown when types has fewer than 2 types.