Click or drag to resize

WikiClientHelperBuildUserAgent(String, String, String) Method

This is preliminary documentation and is subject to change.

Builds a valid User-Agent header value that can be used in ClientUserAgent.

Namespace: WikiClientLibrary.Client
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public static string BuildUserAgent(
	string productName,
	string? productVersion,
	string? comment
)

Parameters

productName  String
Product name.
productVersion  String
Product version, or null.
comment  String
Comment, or null.

Return Value

String
A User-Agent header value string, in the form productName/productVersion (comment).
Exceptions
ExceptionCondition
ArgumentNullExceptionproductName is null.
See Also