Share via


SuppressionListResourceCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/suppressionLists/{suppressionListName}
  • Operation Id: SuppressionLists_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Communication.SuppressionListResource> GetIfExists (string suppressionListName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Communication.SuppressionListResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Communication.SuppressionListResource>
Public Overridable Function GetIfExists (suppressionListName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of SuppressionListResource)

Parameters

suppressionListName
String

The name of the suppression list.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

suppressionListName is null.

Applies to