ArmClientOptions.SetApiVersion(ResourceType, String) Method
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.
Sets the api version to use for a given resource type. To find which API Versions are available in your environment you can use the Get(String, CancellationToken) method for the provider namespace you are interested in.
public void SetApiVersion (Azure.Core.ResourceType resourceType, string apiVersion);
member this.SetApiVersion : Azure.Core.ResourceType * string -> unit
Public Sub SetApiVersion (resourceType As ResourceType, apiVersion As String)
Parameters
- resourceType
- ResourceType
The resource type to set the version for. To determine the appropriate value, you can refer to the corresponding documentation or XML documentation comments of the API. Then, get its resource type from the Resource's ResourceType field.
- apiVersion
- String
The api version to use.
Applies to
Azure SDK for .NET