ConfigurationValidatorBase 類別

定義

當做衍生驗證類別的基底類別,以便可以驗證物件的值。Acts as a base class for deriving a validation class so that a value of an object can be verified.

public ref class ConfigurationValidatorBase abstract
public abstract class ConfigurationValidatorBase
type ConfigurationValidatorBase = class
Public MustInherit Class ConfigurationValidatorBase
繼承
ConfigurationValidatorBase
衍生

備註

ConfigurationValidatorBase類別是用來建立自訂驗證程式。The ConfigurationValidatorBase class is used to create a custom validator. 自訂驗證程式可用於驗證物件值。A custom validator can be used to verify object values.

建構函式

ConfigurationValidatorBase()

初始化 ConfigurationValidatorBase 類別的執行個體。Initializes an instance of the ConfigurationValidatorBase class.

方法

CanValidate(Type)

判斷是否可以根據型別驗證物件。Determines whether an object can be validated based on type.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
Validate(Object)

判斷物件的值是否有效。Determines whether the value of an object is valid.

適用於

另請參閱