PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace

PostSharp.Extensibility Namespace

This namespace defines the semantics of the attribute multicasting mechanism and exposes other types that allow user code to interact with the PostSharp,platform.
Public classAssemblyIdAttribute
Assigns a unique identifier to an assembly. This assembly identifier is used to generate unique attribute identifiers.
Public classEscalatePostSharpMessageAttribute
Custom attribute that, when applied on an assembly, means that a given message should be escalated to an error during the current PostSharp session.
Public classHasInheritedAttributeAttribute
Internal Only. Custom attribute used internally by PostSharp to mark elements having inherited custom attributes. This custom attribute should not be used in custom code, otherwise PostSharp may not work properly.
Public classImplementationBoundAttributeAttribute
Custom attribute meaning that custom attributes of a given type are bound to the implementation, not to the semantics.
Public classInvalidAnnotationException
Exception thrown at build time by implementation of CompileTimeValidate(Object) when an annotation is invalid.
Public classMessage
Encapsulates a message (error, warning, info, ...).
Public classMessageDispenser
Provides a base implementation of IMessageDispenser where the message key is supposed to be in format PRE0000, where PRE is a prefix and 0000 is an integer. Keys for help URLs have the format PRE0000?.
Public classMessageException
Exception embedding a Message.
Public classMessageLocation
Represents the location of a message, which means, for the end-user, a line in a file of source code. From the aspect developer, the location can be known as an object representing an element of code (for instance a Type or MethodInfo). Such implicit locations are resolved by PostSharp to a file and line number.
Public classMessageSource
Provides commodity methods to work with an IMessageSink.
Public classMetricAttribute
Custom attribute that, when applied on an aspect, causes the aspect to increment some metric at build time.
Public classMulticastAttribute
Custom attribute that can be applied to multiple elements using wildcards.
Public classMulticastAttributeUsageAttribute
Custom attribute that determines the usage of a MulticastAttribute.
Public classPostSharpEnvironment
Provides access to the current PostSharp environment (IPostSharpEnvironment).
Public classProjectExtensionElement
Represents a custom element (or section) in the XML project type.
Public classRequirePostSharpAttribute
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.
Public classSuppressAnnotationValidationAttribute
Instructs PostSharp that the validation of IValidableAnnotation is done by another component, and should not be processed by the default component.
Public classSuppressWarningAttribute
Instructs PostSharp to ignore warnings and information messages. Errors cannot be ignored.
Public interfaceICompatibilityLevelService
Exposes the PostSharp version with which the current version of PostSharp should be backward compatible.
Public interfaceIFormattingService
Provides a service similar to Format(String, Object[]), but uses the same formatter as the one used by PostSharp for error messages. This formatter does a better job at formatting objects like Type or MethodInfo.
Public interfaceIMessageDispenser
Gets a text given its key.
Public interfaceIMessageLocationResolver
Provides a method that returns the file and line where a declaration (such as a Type or MethodInfo) is declared.
Public interfaceIMessageSink
Receives messages.
Public interfaceIPostSharpEnvironment
Provides information about the current PostSharp environment.
Public interfaceIProject
Provides information about the currently executing project.
Public interfaceIReflectionBindingManagerService
Exposes the ResolveAssembly(Type) method, which gets the reference identity of the assembly declaring a given type.
Public interfaceIService
A service exposed by the build-time part of PostSharp.
Public interfaceIServiceLocator
Exposes build-time services.
Public interfaceIStateStore
A context that provides storage for arbitrary items.
Public interfaceIValidableAnnotation
Interface that, when implemented by a custom attribute (Attribute), causes PostSharp to invoke a validation method for every instance of that custom attribute.
Public interfaceIWeavingSymbolsService
Service that allows build-time code to push annotations (both programmatic and user-visible) to PostSharp Tools for Visual Studio.
Public enumerationBindingContext
Enumeration of contexts in which assemblies can be loaded.
Public enumerationMulticastAttributes
Attributes of elements to which multicast custom attributes (MulticastAttribute) apply.
Public enumerationMulticastInheritance
Kind of inheritance of MulticastAttribute.
Public enumerationMulticastTargets
Kinds of targets to which multicast custom attributes (MulticastAttribute) can apply.
Public enumerationSeverityType
Types of message severities.