Classes
AssemblyIdAttribute
Assigns a unique identifier to an assembly. This assembly identifier is used to generate unique attribute identifiers.
EscalatePostSharpMessageAttribute
Custom attribute that, when applied to an assembly, means that a given message
should be escalated to an error during the current PostSharp session.
HasInheritedAttributeAttribute
For internal use only. Custom attribute used internally by PostSharp to mark
elements that have inherited custom attributes. This custom attribute should not
be used in custom code. Otherwise, PostSharp may not work properly.
ImplementationBoundAttributeAttribute
Custom attribute meaning that custom attributes of a given type are bound to the implementation, not to the semantics.
InvalidAnnotationException
Exception thrown at build time by an implementation of CompileTimeValidate(object) when an annotation is invalid.
Message
Encapsulates a message, such as an error, a warning or an information message.
MessageDispenser
Provides a base implementation of IMessageDispenser
in which the message key is expected to have the format PRE0000, where
PRE is a prefix and 0000 is an integer. Keys for help URLs
have the format PRE0000?.
MessageException
Exception that embeds a Message.
MessageLocation
Represents the location of a message. For the end user, it is a line in a source code file. For the aspect developer, the location can be an object that represents an element of code (for example, a Type or MethodInfo). PostSharp resolves such implicit locations to a file and line number.
MessageSource
Provides convenience methods to work with an IMessageSink.
MetricAttribute
Custom attribute that, when applied to an aspect, causes the aspect to increment a metric at build time.
MulticastAttribute
Custom attribute that can be applied to multiple elements using wildcards.
MulticastAttributeUsageAttribute
Custom attribute that determines the usage of a MulticastAttribute.
PostSharpEnvironment
Provides access to the current PostSharp environment (IPostSharpEnvironment).
ProjectExtensionElement
Represents a custom element (or section) in the XML project type.
RequirePostSharpAttribute
Custom attribute that, when applied to another custom attribute (a class derived
from Attribute), means that assemblies with elements
annotated with that custom attribute should be processed by PostSharp.
SuppressAnnotationValidationAttribute
Instructs PostSharp that the validation of IValidableAnnotation is done by another component, and should not be processed by the default component.
SuppressWarningAttribute
Instructs PostSharp to ignore warnings and information messages. Errors cannot be ignored.
Interfaces
ICompatibilityLevelService
Exposes the PostSharp version with which the current version of PostSharp should be backward compatible.
IFormattingService
Provides a service similar to Format(string, params object[]), but uses the same formatter as the one that PostSharp uses for error messages. This formatter formats objects like Type or MethodInfo better.
IMessageDispenser
Provides a method that returns a text given its key.
IMessageLocationResolver
Provides a method that returns the file and line where a declaration (such as a Type or MethodInfo) is declared.
IMessageSink
Receives messages.
IPostSharpEnvironment
Provides information about the current PostSharp environment.
IProject
Provides information about the currently executing project.
IReflectionBindingManagerService
Exposes the ResolveAssembly(Type) method, which gets the reference identity of the assembly declaring a given type.
IService
A service exposed by the build-time part of PostSharp.
IServiceLocator
Exposes build-time services.
IStateStore
A context that provides storage for arbitrary items.
IValidableAnnotation
Interface that, when implemented by a custom attribute (Attribute),
causes PostSharp to invoke a validation method for every instance
of that custom attribute.
IWeavingSymbolsService
Service that allows build-time code to push annotations (both programmatic and user-visible) to PostSharp Tools for Visual Studio.
Enums
BindingContext
Specifies the contexts in which assemblies can be loaded.
MulticastAttributes
Specifies the attributes of elements to which multicast custom attributes (MulticastAttribute) apply.
MulticastInheritance
Specifies the kind of inheritance of MulticastAttribute.
MulticastTargets
Specifies the kinds of targets to which multicast custom attributes (MulticastAttribute) can apply.
SeverityType
Specifies the severities of messages.