MulticastAttribute Class
Custom attribute that can be applied to multiple elements using wildcards.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Extensibility.MulticastAttribute
      More...

Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.30.0 (4.3.30.0)
Syntax
C#
[SerializableAttribute]
public abstract class MulticastAttribute : Attribute

The MulticastAttribute type exposes the following members.

Constructors
  NameDescription
Protected methodMulticastAttribute
Initializes a new instance of the MulticastAttribute class
Top
Properties
  NameDescription
Public propertyAttributeExclude
If true, indicates that this attribute removes all other instances of the same attribute type from the set of elements defined by the current instance.
Public propertyAttributeInheritance
Determines whether this attribute is inherited
Public propertyAttributePriority
Gets or sets the priority of the current attribute in case that multiple instances are defined on the same element (lower values are processed before).
Public propertyAttributeReplace
Determines whether this attribute replaces other attributes found on the target declarations.
Public propertyAttributeTargetAssemblies
Gets or sets the assemblies to which the current attribute apply.
Public propertyAttributeTargetElements
Gets or sets the kind of elements to which this custom attributes applies.
Public propertyAttributeTargetExternalMemberAttributes
Gets or sets the visibilities, scopes, virtualities, and implementation of members to which this attribute applies, when the member is external to the current module.
Public propertyAttributeTargetExternalTypeAttributes
Gets or sets the visibilities of types to which this attribute applies, when this type is external to the current module.
Public propertyAttributeTargetMemberAttributes
Gets or sets the visibilities, scopes, virtualities, and implementation of members to which this attribute applies.
Public propertyAttributeTargetMembers
Gets or sets the expression specifying to which members this instance applies.
Public propertyAttributeTargetParameterAttributes
Gets or sets the passing style (by value, out or ref) of parameters to which this attribute applies.
Public propertyAttributeTargetParameters
Gets or sets the expression specifying to which parameters this instance applies.
Public propertyAttributeTargetTypeAttributes
Gets or sets the visibilities of types to which this attribute applies.
Public propertyAttributeTargetTypes
Gets or sets the expression specifying to which types this instance applies.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
Remarks

Each class derived from MulticastAttribute should be decorated with an instance of MulticastAttributeUsageAttribute.

Multicasting is performed by the MulticastAttributeTask, which should be included in the project. After multicasting, custom attribute instances are available on the CustomAttributeDictionaryTask class.

See Also
Inheritance Hierarchy