CustomValidationAttribute.FormatErrorMessage(String) 메서드

정의

유효성 검사 오류 메시지의 형식을 지정합니다.

public:
 override System::String ^ FormatErrorMessage(System::String ^ name);
public override string FormatErrorMessage(string name);
override this.FormatErrorMessage : string -> string
Public Overrides Function FormatErrorMessage (name As String) As String

매개 변수

name
String

서식이 지정된 메시지에 포함할 이름입니다.

반품

형식이 지정된 오류 메시지의 인스턴스입니다.

예외

현재 특성의 형식이 잘못되었습니다.

설명

이 메서드에 전달되는 값을 포함하도록 런타임에 오류 메시지의 name 형식이 지정됩니다.

적용 대상