語言

IValidationMessageFormatter 介面

定義

當由由 ValidationAttribute 其衍生的自訂屬性實作時,驗證本地化管線會用來產生包含屬性特定參數位置佔位符的本地化範本中完整格式化的訊息。

public interface class IValidationMessageFormatter
public interface IValidationMessageFormatter
type IValidationMessageFormatter = interface
Public Interface IValidationMessageFormatter

方法

名稱 Description
FormatMessage(CultureInfo, String, String)

格式化指定 messageTemplate 時,將屬性特定的參數替換在 displayName。

適用於