Freigeben über


DataReplicationPolicyCollection.GetIfExists(String, CancellationToken) Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}
  • Vorgangs-IdPolicy_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource> GetIfExists (string policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource>
Public Overridable Function GetIfExists (policyName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of DataReplicationPolicyResource)

Parameter

policyName
String

Der Richtlinienname.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

policyName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

policyName ist NULL.

Gilt für: