ArmClientOptions.SetApiVersion(ResourceType, String) Method

Definition

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