共用方式為


LocalizationResources.UnrecognizedArgument 方法

定義

將值插入本地化字串中,類似於無法辨識自變數 '{0}' 的當地語系化字串。 必須是下列其中一個:{1}

public:
 virtual System::String ^ UnrecognizedArgument(System::String ^ unrecognizedArg, System::Collections::Generic::IReadOnlyCollection<System::String ^> ^ allowedValues);
public virtual string UnrecognizedArgument (string unrecognizedArg, System.Collections.Generic.IReadOnlyCollection<string> allowedValues);
abstract member UnrecognizedArgument : string * System.Collections.Generic.IReadOnlyCollection<string> -> string
override this.UnrecognizedArgument : string * System.Collections.Generic.IReadOnlyCollection<string> -> string
Public Overridable Function UnrecognizedArgument (unrecognizedArg As String, allowedValues As IReadOnlyCollection(Of String)) As String

參數

unrecognizedArg
String
allowedValues
IReadOnlyCollection<String>

傳回

適用於