Επεξεργασία

Κοινή χρήση μέσω


Validator.GetFullPropertyName(ValidationManager) Method

Definition

Helper method to extract the full property name.

protected:
 System::String ^ GetFullPropertyName(System::Workflow::ComponentModel::Compiler::ValidationManager ^ manager);
protected string GetFullPropertyName (System.Workflow.ComponentModel.Compiler.ValidationManager manager);
member this.GetFullPropertyName : System.Workflow.ComponentModel.Compiler.ValidationManager -> string
Protected Function GetFullPropertyName (manager As ValidationManager) As String

Parameters

manager
ValidationManager

The ValidationManager linked to the validation.

Returns

The full property name.

Exceptions

manager is null.

Remarks

Useful when the validated property is nested. The method traverses the PropertyValidationContext in the stack to build the full name of the property.

For example: the name My.Actor.Bas is built using three PropertyValidationContext items.

If the validated property belongs to an object that is an item in a collection, the method will produce the name of the collection.

Applies to