共用方式為


SharedAccessSignatureAuthorizationRule Constructors

Definition

Overloads

SharedAccessSignatureAuthorizationRule()

Initializes a new instance of the SharedAccessSignatureAuthorizationRule class.

SharedAccessSignatureAuthorizationRule(String, AccessRights, String, String)

Initializes a new instance of the SharedAccessSignatureAuthorizationRule class.

SharedAccessSignatureAuthorizationRule()

Initializes a new instance of the SharedAccessSignatureAuthorizationRule class.

public SharedAccessSignatureAuthorizationRule ();
Public Sub New ()

Applies to

SharedAccessSignatureAuthorizationRule(String, AccessRights, String, String)

Initializes a new instance of the SharedAccessSignatureAuthorizationRule class.

public SharedAccessSignatureAuthorizationRule (string keyName, Microsoft.Azure.Management.IotHub.Models.AccessRights rights, string primaryKey = default, string secondaryKey = default);
new Microsoft.Azure.Management.IotHub.Models.SharedAccessSignatureAuthorizationRule : string * Microsoft.Azure.Management.IotHub.Models.AccessRights * string * string -> Microsoft.Azure.Management.IotHub.Models.SharedAccessSignatureAuthorizationRule
Public Sub New (keyName As String, rights As AccessRights, Optional primaryKey As String = Nothing, Optional secondaryKey As String = Nothing)

Parameters

keyName
String

The name of the shared access policy.

rights
AccessRights

The permissions assigned to the shared access policy. Possible values include: 'RegistryRead', 'RegistryWrite', 'ServiceConnect', 'DeviceConnect', 'RegistryRead, RegistryWrite', 'RegistryRead, ServiceConnect', 'RegistryRead, DeviceConnect', 'RegistryWrite, ServiceConnect', 'RegistryWrite, DeviceConnect', 'ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite, ServiceConnect', 'RegistryRead, RegistryWrite, DeviceConnect', 'RegistryRead, ServiceConnect, DeviceConnect', 'RegistryWrite, ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect'

primaryKey
String

The primary key.

secondaryKey
String

The secondary key.

Applies to