共用方式為


ChannelFactoryOperations.CreateChannelActingAs 泛型方法 (泛型 ChannelFactory, SecurityToken)

命名空間: Microsoft.IdentityModel.Protocols.WSTrust
組件: Microsoft.IdentityModel (在 microsoft.identitymodel.dll 中)

使用方式

    Dim factory As ChannelFactory(Of T)
Dim actAs As SecurityToken
Dim returnValue As T

returnValue = ChannelFactoryOperations.CreateChannelActingAs(factory, actAs)

語法

'宣告
<ExtensionAttribute> _
Public Shared Function CreateChannelActingAs(Of T) ( _
    factory As ChannelFactory(Of T), _
    actAs As SecurityToken _
) As T
[ExtensionAttribute] 
public static T CreateChannelActingAs<T> (
    ChannelFactory<T> factory,
    SecurityToken actAs
)
[ExtensionAttribute] 
public:
generic<typename T>
static T CreateChannelActingAs (
    ChannelFactory<T>^ factory, 
    SecurityToken^ actAs
)

參數

  • factory
     
  • actAs
     

執行緒安全

任何這個類型的公用靜態 (在 Visual Basic 中為 共用) 成員都具備執行緒安全。不保證任何執行個體成員都具備執行緒安全。

平台

開發平台

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

請參閱

參考

ChannelFactoryOperations 類別
ChannelFactoryOperations 成員
Microsoft.IdentityModel.Protocols.WSTrust 命名空間