Class GeneratePropertyBagsForTypesQualifiedWithAttribute
Use this attribute to have the properties source generator generate property bags for types implementing the specified interface.
Inherited Members
Namespace: Unity.Properties
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class GeneratePropertyBagsForTypesQualifiedWithAttribute : Attribute, _Attribute
Remarks
If you need to generate a property bag for a specific type use GeneratePropertyBagsForTypeAttribute.
Constructors
GeneratePropertyBagsForTypesQualifiedWithAttribute(Type, TypeGenerationOptions)
Initializes a new instance of the GeneratePropertyBagsForTypesQualifiedWithAttribute attribute.
Declaration
public GeneratePropertyBagsForTypesQualifiedWithAttribute(Type type, TypeGenerationOptions options = TypeGenerationOptions.Default)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The interface type to generate property bags for. |
| TypeGenerationOptions | options | Additional type filtering options. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The type is null or the given type is not an interface. |
Properties
Options
Options used for additional filtering.
Declaration
public TypeGenerationOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| TypeGenerationOptions |
Type
The interface type to generate property bags for.
Declaration
public Type Type { get; }
Property Value
| Type | Description |
|---|---|
| Type |