PostSharp5.0//API Reference/Post­Sharp.​Extensibility Namespace/Require­Post­Sharp­Attribute Class

RequirePostSharpAttribute Class

Custom attribute that, when applied on another custom attribute (a class derived from Attribute), means that assemblies with elements annotated with that custom attribute should be processed by PostSharp.
Inheritance Hierarchy

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: (
public sealed class RequirePostSharpAttribute : Attribute

The RequirePostSharpAttribute type exposes the following members.

Public methodRequirePostSharpAttribute(Type)
Initializes a new instance of the RequirePostSharpAttribute class
Public methodRequirePostSharpAttribute(String, String)
Initializes a new RequirePostSharpAttribute.
Public propertyAnyTypeReference
Determines whether the current attribute applies to any project that has any reference of the target type. If false, the requirement will apply only to assemblies that use the target type as a custom attribute. If true, the requirement will apply to any assembly that references the target type. The default value is false.
Public propertyAssemblyReferenceOnly
Determines whether the requirement should apply only to assemblies referencing the declaration to which the custom attribute is applied. If true, the requirement will not apply to the assembly where the custom attribute is used.
Public propertyPlugIn
Gets the name of the required plug-in (file name without the extension).
Public propertyServiceType
Public propertyTask
Gets the name of the required task (should be defined in PlugIn).
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also