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