ClientConnection Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ClientConnection(String, String) |
Initializes a new instance of the ClientConnection struct with a with no authentication. |
| ClientConnection(String, String, Object, CredentialKind) |
Initializes a new instance of the ClientConnection struct with a token credential. |
| ClientConnection(String, String, Object, CredentialKind, IReadOnlyDictionary<String,String>) |
Initializes a new instance of the ClientConnection struct with the specified subclient ID. It is only for the JSON serializer. |
ClientConnection(String, String)
- Source:
- ClientConnection.cs
- Source:
- ClientConnection.cs
Initializes a new instance of the ClientConnection struct with a with no authentication.
public ClientConnection(string id, string locator);
new System.ClientModel.Primitives.ClientConnection : string * string -> System.ClientModel.Primitives.ClientConnection
Public Sub New (id As String, locator As String)
Parameters
- id
- String
The identifier for the connection.
- locator
- String
The endpoint or resource identifier.
Applies to
ClientConnection(String, String, Object, CredentialKind)
- Source:
- ClientConnection.cs
- Source:
- ClientConnection.cs
Initializes a new instance of the ClientConnection struct with a token credential.
public ClientConnection(string id, string locator, object credential, System.ClientModel.Primitives.CredentialKind credentialKind);
new System.ClientModel.Primitives.ClientConnection : string * string * obj * System.ClientModel.Primitives.CredentialKind -> System.ClientModel.Primitives.ClientConnection
Public Sub New (id As String, locator As String, credential As Object, credentialKind As CredentialKind)
Parameters
- id
- String
The identifier for the connection.
- locator
- String
The endpoint or resource identifier.
- credential
- Object
The client credential.
- credentialKind
- CredentialKind
The kind of connection used by the client.
Applies to
ClientConnection(String, String, Object, CredentialKind, IReadOnlyDictionary<String,String>)
- Source:
- ClientConnection.cs
Initializes a new instance of the ClientConnection struct with the specified subclient ID. It is only for the JSON serializer.
public ClientConnection(string id, string locator, object? credential, System.ClientModel.Primitives.CredentialKind credentialKind, System.Collections.Generic.IReadOnlyDictionary<string,string>? metadata);
new System.ClientModel.Primitives.ClientConnection : string * string * obj * System.ClientModel.Primitives.CredentialKind * System.Collections.Generic.IReadOnlyDictionary<string, string> -> System.ClientModel.Primitives.ClientConnection
Public Sub New (id As String, locator As String, credential As Object, credentialKind As CredentialKind, metadata As IReadOnlyDictionary(Of String, String))
Parameters
- id
- String
The identifier for the connection.
- locator
- String
The endpoint or resource identifier.
- credential
- Object
The client credential.
- credentialKind
- CredentialKind
The kind of connection used by the client
- metadata
- IReadOnlyDictionary<String,String>
The connection metadata.