Protocol Enumeration

 

Updated: June 30, 2017

Specifies the protocol to be used by DocumentClient for communicating to the Azure DocumentDB service.

Namespace:   Microsoft.Azure.Documents.Client
Assembly:  Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)

No code example is currently available or this language may not be supported.

Member nameDescription
Https

Specifies the HTTPS protocol.

Tcp

Specifies a custom binary protocol on TCP.

IsDefined

Determines if a certain property is defined or not. (Defined by TypeCheckFunctionsExtensions.)

IsNull

Determines if a certain property is null or not. (Defined by TypeCheckFunctionsExtensions.)

IsPrimitive

Determines if a certain property is of premitive JSON type. (Defined by TypeCheckFunctionsExtensions.)


DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy 
{ 
    ConnectionMode = ConnectionMode.Direct,
    ConnectionProtocol = Protocol.Tcp
}); 

Return to top
Show: