AggregatableServices.GetAggregatableAspect Method |
Gets the AggregatableAttribute instance applied on a given Type.
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static AggregatableAttribute GetAggregatableAspect( Type type, bool throwing = true )
Parameters
- type
- Type: System.Type
The type. - throwing (Optional)
- Type: System.Boolean
true if an exception should be thrown if type does not have an AggregatableAttribute, otherwise false.
Return Value
Type: AggregatableAttributeThe AggregatableAttribute found on type