PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­ServicesGet­Aggregatable­Aspect
Open sandboxFocus

AggregatableServices.GetAggregatableAspect Method

GetAggregatableAspect(Type, Boolean)

Gets the AggregatableAttribute instance applied on a given Type.

Declaration
public static AggregatableAttribute GetAggregatableAspect(Type type, bool throwing = true)
Parameters
Type Name Description
Type type

The type.

Boolean throwing

true if an exception should be thrown if type does not have an AggregatableAttribute, otherwise false.

Returns
Type Description
AggregatableAttribute

The AggregatableAttribute found on type