| 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.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public 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