ServiceClient<T>.WithHandler 方法 (ServiceClient<T>, DelegatingHandler)
扩展与新的处理程序 ServiceClient。
命名空间: Microsoft.WindowsAzure.Common
程序集: Microsoft.WindowsAzure.Common(Microsoft.WindowsAzure.Common.dll 中)
语法
protected virtual T WithHandler(
ServiceClient<T> newClient,
DelegatingHandler handler
)
protected:
virtual T WithHandler(
ServiceClient<T>^ newClient,
DelegatingHandler^ handler
)
abstract WithHandler :
newClient:ServiceClient<'T> *
handler:DelegatingHandler -> 'T
override WithHandler :
newClient:ServiceClient<'T> *
handler:DelegatingHandler -> 'T
Protected Overridable Function WithHandler (
newClient As ServiceClient(Of T),
handler As DelegatingHandler
) As T
参数
newClient
Type: Microsoft.WindowsAzure.Common.ServiceClient<T>若要扩展新客户端。
handler
Type: System.Net.Http.DelegatingHandler与其扩展客户端处理程序。
返回值
Type: T
扩展客户端。
请参阅
WithHandler 重载
ServiceClient<T> 类
Microsoft.WindowsAzure.Common 命名空间
返回页首