 | FileRevisionExtMetadataValueValue Property |
This is preliminary documentation and is subject to change.
Metadata value JSON.
Namespace: WikiClientLibrary.FilesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntaxpublic JsonElement Value { get; init; }
Public Property Value As JsonElement
Get
Set
Dim instance As FileRevisionExtMetadataValue
Dim value As JsonElement
value = instance.Value
instance.Value = value
public:
property JsonElement Value {
JsonElement get ();
void set (JsonElement value);
}
member Value : JsonElement with get, set
Property Value
JsonElement
Remarks
According to
mw:API:Imageinfo,
the metadata value is expected to be formatted HTML expression.
But sometimes the value could be a JSON
string of
"True",
"true", or a JSON number.
You need to retrieve the corresponding JSON value into your expected CLR type before working on it.
Alternatively, you can leverage the
GetValueAs* APIs in this class for more resilient type conversion.
See Also