 | 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.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntaxpublic 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
Boolean
Remarks
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