PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Tasks Namespace / Annotation­Repository­Task Class / Annotation­Repository­Task Methods

AnnotationRepositoryTask Methods

The AnnotationRepositoryTask type exposes the following members.

Methods
  NameDescription
Public methodAddAnnotation
Adds a custom attribute instance to the current repository.
Public methodDeserialize
Deserializes the current task from an XML element.
(Inherited from Task.)
Public methodDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Task.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Execute the current Task.
(Overrides Task.Execute().)
Public methodGetAnnotationsOfType(Type, Boolean, Boolean)
Gets all custom attribute instances of a given custom attribute class, given a base Type.
Public methodGetAnnotationsOfType(TypeDefDeclaration, Boolean, Boolean)
Gets all custom attribute instances of a given custom attribute class, given a base TypeDefDeclaration.
Public methodGetAnnotationsOnTarget
Gets an enumerator of all annotations defined on a target (i.e. on a MetadataDeclaration).
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodIsRequired
Determines whether the current task is required by another task in the project.
(Inherited from Task.)
Public methodRemoveAnnotation
Removes a custom attribute instance from the current repository.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also