共用方式為


ManagedNetworkPeeringPolicyCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetwork/managedNetworks/{managedNetworkName}/managedNetworkPeeringPolicies/{managedNetworkPeeringPolicyName}
  • Operation Id: ManagedNetworkPeeringPolicies_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.ManagedNetwork.ManagedNetworkPeeringPolicyResource> GetIfExists (string managedNetworkPeeringPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetwork.ManagedNetworkPeeringPolicyResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ManagedNetwork.ManagedNetworkPeeringPolicyResource>
Public Overridable Function GetIfExists (managedNetworkPeeringPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ManagedNetworkPeeringPolicyResource)

Parameters

managedNetworkPeeringPolicyName
String

The name of the Managed Network Peering Policy.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managedNetworkPeeringPolicyName is an empty string, and was expected to be non-empty.

managedNetworkPeeringPolicyName is null.

Applies to