Delen via


WebPubSubServiceClientOptions Constructor

Definition

Initializes a new instance of the WebPubSubServiceClientOptions.

public WebPubSubServiceClientOptions (Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions.ServiceVersion version = Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions+ServiceVersion.V2024_01_01);
new Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions : Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions.ServiceVersion -> Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions
Public Sub New (Optional version As WebPubSubServiceClientOptions.ServiceVersion = Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions+ServiceVersion.V2024_01_01)

Parameters

version
WebPubSubServiceClientOptions.ServiceVersion

An optional WebPubSubServiceClientOptions.ServiceVersion to specify the version of the REST API to use. If not provided, the version will default to the latest supported by this client library. It is recommended that application authors allow the version to float to the latest and library authors pin to a specific version.

Exceptions

Thrown when the version is not supported by this client library.

Applies to