Bagikan melalui


TrustedSigningCertificateProfileCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}
  • Operation Id: CertificateProfiles_Get
  • Default Api Version: 2024-02-05-preview
  • Resource: TrustedSigningCertificateProfileResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileResource>> GetIfExistsAsync (string profileName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileResource>>
Public Overridable Function GetIfExistsAsync (profileName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of TrustedSigningCertificateProfileResource))

Parameters

profileName
String

Certificate profile name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

profileName is null.

Applies to