共用方式為


CommunicationDomainResource.GetSenderUsernameResourceAsync 方法

定義

取得網域資源的有效寄件者使用者名稱。

  • 要求路徑/訂用帳戶/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}
  • 作業IdSenderUsernames_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.SenderUsernameResource>> GetSenderUsernameResourceAsync (string senderUsername, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSenderUsernameResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.SenderUsernameResource>>
override this.GetSenderUsernameResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.SenderUsernameResource>>
Public Overridable Function GetSenderUsernameResourceAsync (senderUsername As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SenderUsernameResource))

參數

senderUsername
String

有效的寄件者使用者名稱。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

例外狀況

senderUsername 是空字串,預期為非空白。

senderUsername 為 null。

適用於