 | 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.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax[FlagsAttribute]
public enum AccountAssertionBehavior
<FlagsAttribute>
Public Enumeration AccountAssertionBehavior
Dim instance As AccountAssertionBehavior
[FlagsAttribute]
public enum class AccountAssertionBehavior
[<FlagsAttribute>]
type AccountAssertionBehavior
MembersMember 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