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