RemoveTask Class |
Task that remove declarations from the module.
Typically called immediately before compilation.
System.Object
System.MarshalByRefObject
PostSharp.Sdk.Extensibility.Task
PostSharp.Sdk.Extensibility.Tasks.RemoveTask
System.MarshalByRefObject
PostSharp.Sdk.Extensibility.Task
PostSharp.Sdk.Extensibility.Tasks.RemoveTask
Namespace: PostSharp.Sdk.Extensibility.Tasks
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public sealed class RemoveTask : Task
The RemoveTask type exposes the following members.
Name | Description | |
---|---|---|
RemoveTask | Initializes a new instance of the RemoveTask class |
Name | Description | |
---|---|---|
CopyrightNotice |
Gets the line of text that's printed on standard output next to the name of this task during build.
For example, if this were "By PostSharp Technologies", the entire line might be "MyTask: By PostSharp Technologies".
(Inherited from Task.) | |
IsInitialized | (Inherited from Task.) |
Name | Description | |
---|---|---|
Deserialize |
Deserializes the current task from an XML element.
(Inherited from Task.) | |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from Task.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute |
Execute the current Task.
(Overrides Task.Execute().) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetTask |
Finds the RemoveTask task instance in a Project.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
IsMarkedForRemoval |
Determines whether a declaration has been marked for removal.
| |
IsRequired |
Determines whether the current task is required by another task in the project.
(Inherited from Task.) | |
MarkForRemoval |
Order a declaration to be removed later by this task.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Declaration removal should be two-phased: first declarations
should be marked for removal using the MarkForRemoval(IRemovable)
method, then they are removed, typically immediately before
compilation, during task execution.