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

WebSiteSlotResource.StartNetworkTraceSlot 方法

定义

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

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/startNetworkTrace
  • 操作IdWebApps_StartNetworkTraceSlot
public virtual Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.AppService.Models.WebAppNetworkTrace>> StartNetworkTraceSlot (Azure.WaitUntil waitUntil, int? durationInSeconds = default, int? maxFrameLength = default, string sasUrl = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartNetworkTraceSlot : Azure.WaitUntil * Nullable<int> * Nullable<int> * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.AppService.Models.WebAppNetworkTrace>>
override this.StartNetworkTraceSlot : Azure.WaitUntil * Nullable<int> * Nullable<int> * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.AppService.Models.WebAppNetworkTrace>>
Public Overridable Function StartNetworkTraceSlot (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 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

要使用的取消标记。

返回

适用于