Adds a set of credentials to the list of credentials, in the form of user/password
Namespace: Couchbase.N1QLAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
SyntaxIQueryRequest AddCredentials(
string username,
string password,
bool isAdmin
)
IQueryRequest AddCredentials(
string username,
string password,
bool isAdmin
)
Function AddCredentials (
username As String,
password As String,
isAdmin As Boolean
) As IQueryRequest
Function AddCredentials (
username As String,
password As String,
isAdmin As Boolean
) As IQueryRequest
IQueryRequest^ AddCredentials(
String^ username,
String^ password,
bool isAdmin
)
IQueryRequest^ AddCredentials(
String^ username,
String^ password,
bool isAdmin
)
abstract AddCredentials :
username : string *
password : string *
isAdmin : bool -> IQueryRequest
abstract AddCredentials :
username : string *
password : string *
isAdmin : bool -> IQueryRequest
Parameters
- username
- Type: System.String
The bucket or username.
- password
- Type: System.String
The password of the bucket.
- isAdmin
- Type: System.Boolean
True if connecting as an admin.
Return Value
Type:
IQueryRequestA reference to the current
IQueryRequest for method chaining.
RemarksOptional.
See Also