PositiveTimeSpanValidatorAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Declaratively instructs .NET to perform time validation on a configuration property. This class cannot be inherited.
public ref class PositiveTimeSpanValidatorAttribute sealed : System::Configuration::ConfigurationValidatorAttribute
[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class PositiveTimeSpanValidatorAttribute : System.Configuration.ConfigurationValidatorAttribute
[<System.AttributeUsage(System.AttributeTargets.Property)>]
type PositiveTimeSpanValidatorAttribute = class
inherit ConfigurationValidatorAttribute
Public NotInheritable Class PositiveTimeSpanValidatorAttribute
Inherits ConfigurationValidatorAttribute
- Inheritance
- Attributes
Remarks
You use the PositiveTimeSpanValidatorAttribute attribute to decorate a configuration property. This instructs .NET to validate the property using a PositiveTimeSpanValidator object and pass the value of the decorating parameters.
You can apply PositiveTimeSpanValidatorAttribute objects only to property types.
Constructors
| Name | Description |
|---|---|
| PositiveTimeSpanValidatorAttribute() |
Initializes a new instance of the PositiveTimeSpanValidatorAttribute class. |
Properties
| Name | Description |
|---|---|
| ValidatorInstance |
Gets an instance of the PositiveTimeSpanValidator class. |
| ValidatorType |
Gets the type of the validator attribute. (Inherited from ConfigurationValidatorAttribute) |