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

WebSiteSlotResource.StartWebSiteNetworkTraceOperationSlotAsync 方法

定义

开始捕获站点的网络数据包的说明。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/startOperation
  • 操作IdWebApps_StartWebSiteNetworkTraceOperationSlot
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.AppService.Models.WebAppNetworkTrace>>> StartWebSiteNetworkTraceOperationSlotAsync (Azure.WaitUntil waitUntil, int? durationInSeconds = default, int? maxFrameLength = default, string sasUrl = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartWebSiteNetworkTraceOperationSlotAsync : Azure.WaitUntil * Nullable<int> * Nullable<int> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.AppService.Models.WebAppNetworkTrace>>>
override this.StartWebSiteNetworkTraceOperationSlotAsync : Azure.WaitUntil * Nullable<int> * Nullable<int> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.AppService.Models.WebAppNetworkTrace>>>
Public Overridable Function StartWebSiteNetworkTraceOperationSlotAsync (waitUntil As WaitUntil, Optional durationInSeconds As Nullable(Of Integer) = Nothing, Optional maxFrameLength As Nullable(Of Integer) = Nothing, Optional sasUrl As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of IList(Of WebAppNetworkTrace)))

参数

waitUntil
WaitUntil

Completed 如果方法应等待返回,直到服务上长时间运行的操作完成; Started 如果它应在启动操作后返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

durationInSeconds
Nullable<Int32>

持续捕获的持续时间(以秒为单位)。

maxFrameLength
Nullable<Int32>

最大帧长度(以字节为单位) (可选) 。

sasUrl
String

用于存储捕获文件的 Blob URL。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于