你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SqlServerResource.GetSyncAgent(String, CancellationToken) 方法

定义

获取同步代理。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}
  • 操作IdSyncAgents_Get
public virtual Azure.Response<Azure.ResourceManager.Sql.SyncAgentResource> GetSyncAgent (string syncAgentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSyncAgent : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.SyncAgentResource>
override this.GetSyncAgent : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.SyncAgentResource>
Public Overridable Function GetSyncAgent (syncAgentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SyncAgentResource)

参数

syncAgentName
String

同步代理的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

syncAgentName 是一个空字符串,预期为非空。

syncAgentName 为 null。

适用于