PostSharp6.6//API Reference/Post­Sharp.​Extensibility Namespace/Require­Post­Sharp­Attribute Class/Require­Post­Sharp­Attribute Properties

RequirePostSharpAttribute Properties

The RequirePostSharpAttribute type exposes the following members.

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