Edit

SubclassTypeValidatorAttribute Class

Definition

Declaratively instructs .NET to perform validation on a configuration property. This class cannot be inherited.

public ref class SubclassTypeValidatorAttribute sealed : System::Configuration::ConfigurationValidatorAttribute
[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class SubclassTypeValidatorAttribute : System.Configuration.ConfigurationValidatorAttribute
[<System.AttributeUsage(System.AttributeTargets.Property)>]
type SubclassTypeValidatorAttribute = class
    inherit ConfigurationValidatorAttribute
Public NotInheritable Class SubclassTypeValidatorAttribute
Inherits ConfigurationValidatorAttribute
Inheritance
SubclassTypeValidatorAttribute
Attributes

Remarks

You use the IntegerValidatorAttribute attribute to decorate a configuration property. This is to instruct .NET to validate the property using a SubclassTypeValidatorAttribute attribute, and pass to it the value of the decorating parameters.

You can apply SubclassTypeValidatorAttribute attributes to property types only.

Constructors

Name Description
SubclassTypeValidatorAttribute(Type)

Initializes a new instance of the SubclassTypeValidatorAttribute class.

Properties

Name Description
BaseClass

Gets the base type of the object being validated.

ValidatorInstance

Gets the validator attribute instance.

ValidatorType

Gets the type of the validator attribute.

(Inherited from ConfigurationValidatorAttribute)

Applies to