Méthode | Description | |
---|---|---|
RequiredRule ( string rootType, string property ) : System | ||
RequiredRule ( string rootType, string property, Error error ) : System | ||
RequiredRule ( string rootType, string property, Error error, object requiredValue ) : System | ||
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes ) : System | ||
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, Error error ) : System | ||
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, Error error, object requiredValue ) : System | ||
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, object requiredValue ) : System | ||
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, string errorMessage ) : System | ||
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, string errorMessage, object requiredValue ) : System | ||
RequiredRule ( string rootType, string property, object requiredValue ) : System | ||
RequiredRule ( string rootType, string property, string errorMessage ) : System | ||
RequiredRule ( string rootType, string property, string errorMessage, object requiredValue ) : System |
Méthode | Description | |
---|---|---|
ConditionApplies ( ModelInstance root ) : bool |
Determines whether the rule should attach its condition to the given ModelInstance.
|
Méthode | Description | |
---|---|---|
CreateError ( string property ) : ConditionType>.Func |
protected ConditionApplies ( ModelInstance root ) : bool | ||
root | ModelInstance | The model instance to evaluate the rule for. |
Résultat | bool |
public RequiredRule ( string rootType, string property ) : System | ||
rootType | string | |
property | string | |
Résultat | System |
public RequiredRule ( string rootType, string property, Error error ) : System | ||
rootType | string | |
property | string | |
error | Error | |
Résultat | System |
public RequiredRule ( string rootType, string property, Error error, object requiredValue ) : System | ||
rootType | string | |
property | string | |
error | Error | |
requiredValue | object | |
Résultat | System |
public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes ) : System | ||
rootType | string | |
property | string | |
invocationTypes | RuleInvocationType | |
Résultat | System |
public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, Error error ) : System | ||
rootType | string | |
property | string | |
invocationTypes | RuleInvocationType | |
error | Error | |
Résultat | System |
public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, Error error, object requiredValue ) : System | ||
rootType | string | |
property | string | |
invocationTypes | RuleInvocationType | |
error | Error | |
requiredValue | object | |
Résultat | System |
public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, object requiredValue ) : System | ||
rootType | string | |
property | string | |
invocationTypes | RuleInvocationType | |
requiredValue | object | |
Résultat | System |
public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, string errorMessage ) : System | ||
rootType | string | |
property | string | |
invocationTypes | RuleInvocationType | |
errorMessage | string | |
Résultat | System |
public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, string errorMessage, object requiredValue ) : System | ||
rootType | string | |
property | string | |
invocationTypes | RuleInvocationType | |
errorMessage | string | |
requiredValue | object | |
Résultat | System |
public RequiredRule ( string rootType, string property, object requiredValue ) : System | ||
rootType | string | |
property | string | |
requiredValue | object | |
Résultat | System |
public RequiredRule ( string rootType, string property, string errorMessage ) : System | ||
rootType | string | |
property | string | |
errorMessage | string | |
Résultat | System |
public RequiredRule ( string rootType, string property, string errorMessage, object requiredValue ) : System | ||
rootType | string | |
property | string | |
errorMessage | string | |
requiredValue | object | |
Résultat | System |