Creates a connection to a specific SASL authenticated Couchbase Bucket.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic IBucket OpenBucket(
string bucketname,
string password
)
public IBucket OpenBucket(
string bucketname,
string password
)
Public Function OpenBucket (
bucketname As String,
password As String
) As IBucket
Public Function OpenBucket (
bucketname As String,
password As String
) As IBucket
public:
virtual IBucket^ OpenBucket(
String^ bucketname,
String^ password
) sealed
public:
virtual IBucket^ OpenBucket(
String^ bucketname,
String^ password
) sealed
abstract OpenBucket :
bucketname : string *
password : string -> IBucket
override OpenBucket :
bucketname : string *
password : string -> IBucket
abstract OpenBucket :
bucketname : string *
password : string -> IBucket
override OpenBucket :
bucketname : string *
password : string -> IBucket
Parameters
- bucketname
- Type: System.String
The Couchbase Bucket to connect to.
- password
- Type: System.String
The SASL password to use.
Return Value
Type:
IBucketAn instance which implements the IBucket interface.
Implements
ICluster.OpenBucket(String, String)
RemarksUse Cluster.CloseBucket(bucket) to release resources associated with a Bucket.
See Also