BaseClient 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
BaseClient(String, HttpClient) |
Constructs a new BaseClient. |
BaseClient(String, IAuthenticationProvider, IHttpProvider) |
Constructs a new BaseClient. |
BaseClient(String, HttpClient)
Constructs a new BaseClient.
public BaseClient (string baseUrl, System.Net.Http.HttpClient httpClient);
new Microsoft.Graph.BaseClient : string * System.Net.Http.HttpClient -> Microsoft.Graph.BaseClient
Public Sub New (baseUrl As String, httpClient As HttpClient)
Parameters
- baseUrl
- String
The base service URL. For example, "https://graph.microsoft.com/v1.0."
- httpClient
- HttpClient
The custom HttpClient to be used for making requests
Applies to
BaseClient(String, IAuthenticationProvider, IHttpProvider)
Constructs a new BaseClient.
public BaseClient (string baseUrl, Microsoft.Graph.IAuthenticationProvider authenticationProvider, Microsoft.Graph.IHttpProvider httpProvider = default);
new Microsoft.Graph.BaseClient : string * Microsoft.Graph.IAuthenticationProvider * Microsoft.Graph.IHttpProvider -> Microsoft.Graph.BaseClient
Public Sub New (baseUrl As String, authenticationProvider As IAuthenticationProvider, Optional httpProvider As IHttpProvider = Nothing)
Parameters
- baseUrl
- String
The base service URL. For example, "https://graph.microsoft.com/v1.0."
- authenticationProvider
- IAuthenticationProvider
The IAuthenticationProvider for authenticating request messages.
- httpProvider
- IHttpProvider
The IHttpProvider for sending requests.