Inserts a design document containing a number of views.
Namespace: Couchbase.ManagementAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
SyntaxTask<IResult> InsertDesignDocumentAsync(
string designDocName,
string designDoc
)
Task<IResult> InsertDesignDocumentAsync(
string designDocName,
string designDoc
)
Function InsertDesignDocumentAsync (
designDocName As String,
designDoc As String
) As Task(Of IResult)
Function InsertDesignDocumentAsync (
designDocName As String,
designDoc As String
) As Task(Of IResult)
Task<IResult^>^ InsertDesignDocumentAsync(
String^ designDocName,
String^ designDoc
)
Task<IResult^>^ InsertDesignDocumentAsync(
String^ designDocName,
String^ designDoc
)
abstract InsertDesignDocumentAsync :
designDocName : string *
designDoc : string -> Task<IResult>
abstract InsertDesignDocumentAsync :
designDocName : string *
designDoc : string -> Task<IResult>
Parameters
- designDocName
- Type: System.String
The name of the design document.
- designDoc
- Type: System.String
A design document JSON string.
Return Value
Type:
Task<IResult>A boolean value indicating the result.
See Also