PostSharpAPI ReferencePost­Sharp.​ExtensibilityMulticast­Attribute­Usage­Attribute
Open sandboxFocus

MulticastAttributeUsageAttribute Class

Custom attribute that determines the usage of a MulticastAttribute.

Inheritance
MulticastAttributeUsageAttribute
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public sealed class MulticastAttributeUsageAttribute : Attribute

Constructors

Name Description
MulticastAttributeUsageAttribute()

Initializes a new MulticastAttributeUsageAttribute.

MulticastAttributeUsageAttribute(MulticastTargets)

Initializes a new MulticastAttributeUsageAttribute.

Properties

Name Description
AllowExternalAssemblies

Determines whether this attribute can be applied to declaration of external assemblies (i.e. to other assemblies than the one in which the custom attribute is instantiated).

AllowMultiple

Determines whether many instances of the custom attribute are allowed on a single declaration.

Inheritance

Determines whether the custom attribute in inherited along the lines of inheritance of the target element.

PersistMetaData

Determines whether the custom attribute should be persisted in metadata, so that it would be available for System.Reflection.

TargetExternalMemberAttributes

Gets or sets the attributes of the members (fields or methods) to which the custom attribute can be applied, when the members are external to the current module.

TargetExternalTypeAttributes

Gets or sets the attributes of the types to which the custom attribute can be applied, when the type is external to the current module. If the custom attribute relates to fields or methods, this property specifies which attributes of the declaring type are acceptable.

TargetMemberAttributes

Gets or sets the attributes of the members (fields or methods) to which the custom attribute can be applied.

TargetParameterAttributes

Gets or sets the attributes of the parameter to which the custom attribute can be applied.

TargetTypeAttributes

Gets or sets the attributes of the types to which the custom attribute can be applied. Visibility, scope (Instance or Static) and generation are the only categories that are taken into account; attributes of other categories are ignored. If the custom attribute relates to fields or methods, this property specifies which attributes of the declaring type are acceptable.

ValidOn

Gets the kinds of targets that instances of the related MulticastAttribute apply to.