ValidateSetAttribute.ErrorMessage Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the custom error message that is displayed to the user.
The item being validated and a text representation of the validation set is passed as the
first and second formatting argument to the ErrorMessage formatting pattern.
[ValidateSet("A","B","C", ErrorMessage="The item '{0}' is not part of the set '{1}'.")
public:
property System::String ^ ErrorMessage { System::String ^ get(); void set(System::String ^ value); };
public:
property Platform::String ^ ErrorMessage { Platform::String ^ get(); void set(Platform::String ^ value); };
public string ErrorMessage { get; set; }
member this.ErrorMessage : string with get, set
Public Property ErrorMessage As String