| AccountInfoHasRight Method |
This is preliminary documentation and is subject to change.
Determines whether the user has certain right.
Namespace: WikiClientLibrary.SitesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public bool HasRight(
string rightName
)
Public Function HasRight (
rightName As String
) As Boolean
Dim instance As AccountInfo
Dim rightName As String
Dim returnValue As Boolean
returnValue = instance.HasRight(rightName)
public:
bool HasRight(
String^ rightName
)
member HasRight :
rightName : string -> bool
Parameters
- rightName String
- The name of the right.
Return Value
BooleanRemarks
It's recommended to use this method instead of checking Rights manually.
Refer to UserRights for a list of commonly-used built-in user rights.
See Also