RestRequest(RestRequestMethod, Uri, RestRequestAuthentication) Constructor
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.
Initializes a new instance of RestRequest.
public RestRequest (Azure.ResourceManager.DeploymentManager.Models.RestRequestMethod method, Uri uri, Azure.ResourceManager.DeploymentManager.Models.RestRequestAuthentication authentication);
new Azure.ResourceManager.DeploymentManager.Models.RestRequest : Azure.ResourceManager.DeploymentManager.Models.RestRequestMethod * Uri * Azure.ResourceManager.DeploymentManager.Models.RestRequestAuthentication -> Azure.ResourceManager.DeploymentManager.Models.RestRequest
Public Sub New (method As RestRequestMethod, uri As Uri, authentication As RestRequestAuthentication)
Parameters
- method
- RestRequestMethod
The HTTP method to use for the request.
- uri
- Uri
The HTTP URI to use for the request.
- authentication
- RestRequestAuthentication
The authentication information required in the request to the health provider. Please note RestRequestAuthentication is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ApiKeyAuthentication and RolloutIdentityAuthentication.
Exceptions
uri
or authentication
is null.