Click or drag to resize

AccountAssertionBehavior Enumeration

This is preliminary documentation and is subject to change.

See https://www.mediawiki.org/wiki/API:Assert .

Namespace: WikiClientLibrary.Sites
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
[FlagsAttribute]
public enum AccountAssertionBehavior
Members
Member nameValueDescription
None0 Do not assert for user's login status when performing API requests. Not recommended.
AssertUser1 Asserts that your account is logged in per request, if AccountInfo indicates that you should have logged in. If the assertion failed, an AccountAssertionFailureException will be thrown.
AssertBot2 Checks that your account has the "bot" user right per request, if AccountInfo indicates that you should have logged in as bot. If the assertion failed, an AccountAssertionFailureException will be thrown.
AssertAll3 Checks for "bot" user right, or "user" if the former is not applicable per request.
See Also