共用方式為


CloudExtensions.AddHandlerToPipeline方法

Adds a handler to the end of the HTTP pipeline of the client.

命名空間: Microsoft.WindowsAzure.Common.Internals
組件: Microsoft.WindowsAzure.Common (於 Microsoft.WindowsAzure.Common.dll)

使用方式

'用途
Dim client As ServiceClient(Of T)
Dim handler As DelegatingHandler

CloudExtensions.AddHandlerToPipeline(client, handler)

語法

'宣告
<ExtensionAttribute> _
Public Shared Sub AddHandlerToPipeline(Of T As ServiceClient(Of T)) ( _
    client As ServiceClient(Of T), _
    handler As DelegatingHandler _
)
[ExtensionAttribute] 
public static void AddHandlerToPipeline<T> (
    ServiceClient<T> client,
    DelegatingHandler handler
) where T : ServiceClient<T>
[ExtensionAttribute] 
public:
generic<typename T> where T : ServiceClient<T>
static void AddHandlerToPipeline (
    ServiceClient<T>^ client, 
    DelegatingHandler^ handler
)

GenericParameters

  • T
    Type of service client.

參數

  • client
    The service client.
  • handler
    The handler that was added.

執行緒安全性

這種類型的任何公用靜態 (在 Visual Basic 中的 Shared) 成員都屬於安全執行緒。不保證任何執行個體成員安全執行緒。

平台

開發平台

Windows Vista、Windows 7 和 Windows Server 2008

目標平台

另請參閱

參考

CloudExtensions類別
CloudExtensions成員
Microsoft.WindowsAzure.Common.Internals命名空間