PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Advice­Group Class

AdviceGroup Class

Represents a group of advices. Information encapsulated in this class do not depend on how the aspect is being used. All advices, including those represented by custom attributes that do not derive from GroupingAdvice, exist in an AdviceGroup. In this case, the group contains a single advice.
Inheritance Hierarchy

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public abstract class AdviceGroup

The AdviceGroup type exposes the following members.

Protected methodAdviceGroup
Initializes a new AdviceGroup.
Public propertyAdvices
Gets the collection of annotations (custom attributes) in the current AdviceGroup.
Public propertyAdviceWeaver
Gets the parent AdviceWeaver.
Public propertyDependencies
Gets the collection of dependencies of the current AdviceGroup.
Public propertyGroupKey
Gets the key of the current AdviceGroup.
Public propertyIsValid
Public propertyMasterAdvice
Protected propertySupportsAdviceParameters
Public propertyWeavingSymbolAttributes
Gets an aggregated "metadata" values for this advice group. The result is based on the corresponding values for each advice of the group.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitialize
Initializes the current AdviceGroup. This method is invoked after the object has been fully set up.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodPrepareTransformation
Prepares an AspectWeaverTransformation for use with the current AdviceGroup by adding relevant dependencies to the transformation.
Public methodProvideTransformations
Provides the transformation instances necessary to implement the current AdviceGroup.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodValidate
Protected methodValidateLegacyParameter
See Also