PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility Namespace / Task Class / Task Methods / Task.​Validate Method

Task.Validate Method

Determines whether the task configuration (deserialized from the attributes of the XML element representing the task instance) is valid.

Namespace:  PostSharp.Sdk.Extensibility
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
protected virtual bool Validate()

Return Value

Type: Boolean
true if the task configuration is valid, otherwise false.
Remarks
If the task configuration is invalid, the method implementation should additionally emit an error message.
See Also