C# 클래스 FluentValidation.Internal.MessageFormatter

Assists in the construction of validation messages.
파일 보기 프로젝트 열기: JeremySkinner/FluentValidation 1 사용 예제들

공개 메소드들

메소드 설명
AppendAdditionalArguments ( ) : MessageFormatter

Adds additional arguments to the message for use with standard string placeholders.

AppendArgument ( string name, object value ) : MessageFormatter

Adds a value for a validation message placeholder.

AppendPropertyName ( string name ) : MessageFormatter

Appends a property name to the message.

AppendPropertyValue ( object value ) : MessageFormatter

Appends a property value to the message.

BuildMessage ( string messageTemplate ) : string

Constructs the final message from the specified template.

비공개 메소드들

메소드 설명
GetPlaceholder ( string key ) : string
ReplacePlaceholderWithValue ( string template, string key, object value ) : string

메소드 상세

AppendAdditionalArguments() 공개 메소드

Adds additional arguments to the message for use with standard string placeholders.
public AppendAdditionalArguments ( ) : MessageFormatter
리턴 MessageFormatter

AppendArgument() 공개 메소드

Adds a value for a validation message placeholder.
public AppendArgument ( string name, object value ) : MessageFormatter
name string
value object
리턴 MessageFormatter

AppendPropertyName() 공개 메소드

Appends a property name to the message.
public AppendPropertyName ( string name ) : MessageFormatter
name string The name of the property
리턴 MessageFormatter

AppendPropertyValue() 공개 메소드

Appends a property value to the message.
public AppendPropertyValue ( object value ) : MessageFormatter
value object The value of the property
리턴 MessageFormatter

BuildMessage() 공개 메소드

Constructs the final message from the specified template.
public BuildMessage ( string messageTemplate ) : string
messageTemplate string Message template
리턴 string