PostSharp6.4/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
System.Object
  System.Attribute
    PostSharp.Extensibility.RequirePostSharpAttribute

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

The RequirePostSharpAttribute type exposes the following members.

Constructors
  NameDescription
Public methodRequirePostSharpAttribute(Type)
Initializes a new RequirePostSharpAttribute and specifies the required IService type.
Public methodRequirePostSharpAttribute(String, String)
Initializes a new RequirePostSharpAttribute and specifies the required plug-in and task names.
Properties
  NameDescription
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
Gets the type of the required IService.
Public propertyTask
Gets the name of the required task (should be defined in PlugIn).
See Also