IValidatableObject 介面
定義
提供物件的驗證方式。Provides a way for an object to be validated.
public interface class IValidatableObject
public interface IValidatableObject
type IValidatableObject = interface
Public Interface IValidatableObject
備註
可以檢查實作為此介面之型別的實例,以判斷它們是否有效。Instances of types that implement this interface can be checked to determine if they are valid.
方法
Validate(ValidationContext) |
判斷指定的物件是否有效。Determines whether the specified object is valid. |