 | UploadWarningCollectionFormatWarning Method |
This is preliminary documentation and is subject to change.
Try to convert the specified warning code and context into a user-friendly
warning message.
Namespace: WikiClientLibrary.FilesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntaxpublic static string FormatWarning(
string warningCode,
JsonElement context
)
Public Shared Function FormatWarning (
warningCode As String,
context As JsonElement
) As String
Dim warningCode As String
Dim context As JsonElement
Dim returnValue As String
returnValue = UploadWarningCollection.FormatWarning(warningCode,
context)
public:
static String^ FormatWarning(
String^ warningCode,
JsonElement context
)
static member FormatWarning :
warningCode : string *
context : JsonElement -> string
Parameters
- warningCode String
- Case-sensitive warning code.
- context JsonElement
- The extra content of the warning.
Return Value
String
It tries to match the warningCode with well-known ones, and returns a
user-friendly warning message. If there's no match, a string containing
warningCode and context will be returned.
See Also