SubclassTypeValidatorAttribute Klasa
Definicja
W sposób deklaratywny nakazuje programowi .NET wykonanie walidacji właściwości konfiguracji.Declaratively instructs .NET to perform validation on a configuration property. Klasa ta nie może być dziedziczona.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
- Dziedziczenie
- Atrybuty
Uwagi
Ten atrybut służy IntegerValidatorAttribute do dekorować właściwości konfiguracji.You use the IntegerValidatorAttribute attribute to decorate a configuration property. Jest to poinstruuje .NET, aby sprawdzał poprawność właściwości przy użyciu SubclassTypeValidatorAttribute atrybutu, i przekazać do niego wartość parametrów dekorowania nazwy.This is to instruct .NET to validate the property using a SubclassTypeValidatorAttribute attribute, and pass to it the value of the decorating parameters.
Atrybuty można stosować SubclassTypeValidatorAttribute tylko do typów właściwości.You can apply SubclassTypeValidatorAttribute attributes to property types only.
Konstruktory
SubclassTypeValidatorAttribute(Type) |
Inicjuje nowe wystąpienie klasy SubclassTypeValidatorAttribute.Initializes a new instance of the SubclassTypeValidatorAttribute class. |
Właściwości
BaseClass |
Pobiera typ podstawowy zweryfikowanego obiektu.Gets the base type of the object being validated. |
TypeId |
Po zaimplementowaniu w klasie pochodnej pobiera unikatowy identyfikator dla tego elementu Attribute .When implemented in a derived class, gets a unique identifier for this Attribute. (Odziedziczone po Attribute) |
ValidatorInstance |
Pobiera wystąpienie atrybutu modułu sprawdzania poprawności.Gets the validator attribute instance. |
ValidatorType |
Pobiera typ atrybutu modułu sprawdzania poprawności.Gets the type of the validator attribute. (Odziedziczone po ConfigurationValidatorAttribute) |
Metody
Equals(Object) |
Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi.Returns a value that indicates whether this instance is equal to a specified object. (Odziedziczone po Attribute) |
GetHashCode() |
Zwraca wartość skrótu dla tego wystąpienia.Returns the hash code for this instance. (Odziedziczone po Attribute) |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
IsDefaultAttribute() |
Gdy jest zastępowany w klasie pochodnej, wskazuje, czy wartość tego wystąpienia jest wartością domyślną klasy pochodnej.When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Odziedziczone po Attribute) |
Match(Object) |
Gdy jest zastępowany w klasie pochodnej, zwraca wartość wskazującą, czy to wystąpienie jest zgodne z określonym obiektem.When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Odziedziczone po Attribute) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
Jawne implementacje interfejsu
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
Zestaw nazw jest mapowany na odpowiedni zestaw identyfikatorów wysyłania.Maps a set of names to a corresponding set of dispatch identifiers. (Odziedziczone po Attribute) |
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) |
Pobiera informacje o typie dla obiektu, którego można użyć do uzyskania informacji o typie dla interfejsu.Retrieves the type information for an object, which can be used to get the type information for an interface. (Odziedziczone po Attribute) |
_Attribute.GetTypeInfoCount(UInt32) |
Pobiera informację o liczbie typów interfejsów, jakie zawiera obiekt (0 lub 1).Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Odziedziczone po Attribute) |
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
Umożliwia dostęp do właściwości i metod udostępnianych przez obiekt.Provides access to properties and methods exposed by an object. (Odziedziczone po Attribute) |