Freigeben über


ArmServiceBusModelFactory.ServiceBusRegenerateAccessKeyContent Method

Definition

Initializes a new instance of ServiceBusRegenerateAccessKeyContent.

public static Azure.ResourceManager.ServiceBus.Models.ServiceBusRegenerateAccessKeyContent ServiceBusRegenerateAccessKeyContent (Azure.ResourceManager.ServiceBus.Models.ServiceBusAccessKeyType keyType = Azure.ResourceManager.ServiceBus.Models.ServiceBusAccessKeyType.PrimaryKey, string key = default);
static member ServiceBusRegenerateAccessKeyContent : Azure.ResourceManager.ServiceBus.Models.ServiceBusAccessKeyType * string -> Azure.ResourceManager.ServiceBus.Models.ServiceBusRegenerateAccessKeyContent
Public Shared Function ServiceBusRegenerateAccessKeyContent (Optional keyType As ServiceBusAccessKeyType = Azure.ResourceManager.ServiceBus.Models.ServiceBusAccessKeyType.PrimaryKey, Optional key As String = Nothing) As ServiceBusRegenerateAccessKeyContent

Parameters

keyType
ServiceBusAccessKeyType

The access key to regenerate.

key
String

Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set for keyType.

Returns

A new ServiceBusRegenerateAccessKeyContent instance for mocking.

Applies to