Chỉnh sửa

PositiveTimeSpanValidatorAttribute Class

Definition

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
PositiveTimeSpanValidatorAttribute
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)

Applies to

See also