PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Model Namespace/Aggregatable­Services Class/Aggregatable­Services Methods/Aggregatable­Services.​Get­Aggregatable­Aspect Method

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: 6.5.13.0 (6.5.13.0)
Syntax
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: AggregatableAttribute
The AggregatableAttribute found on type
See Also