| AccountAssertionBehavior Enumeration |
This is preliminary documentation and is subject to change.
See https://www.mediawiki.org/wiki/API:Assert .
Namespace: WikiClientLibrary.SitesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax [FlagsAttribute]
public enum AccountAssertionBehavior
<FlagsAttribute>
Public Enumeration AccountAssertionBehavior
Dim instance As AccountAssertionBehavior
[FlagsAttribute]
public enum class AccountAssertionBehavior
[<FlagsAttribute>]
type AccountAssertionBehavior
Members Member name | Value | Description |
---|
None | 0 |
Do not assert for user's login status when performing API requests. Not recommended.
|
AssertUser | 1 |
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.
|
AssertBot | 2 |
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.
|
AssertAll | 3 |
Checks for "bot" user right, or "user" if the former is not applicable per request.
|
See Also