IQueryRequest.AddCredentials Method Couchbase .NET SDK 2.0
Adds a set of credentials to the list of credentials, in the form of user/password

Namespace: Couchbase.N1QL
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
IQueryRequest AddCredentials(
	string username,
	string password,
	bool isAdmin
)

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: IQueryRequest
A reference to the current IQueryRequest for method chaining.
Remarks
Optional.
See Also