Partager via


Méthode générique ChannelFactoryOperations.CreateChannelOnBehalfOf (ChannelFactory générique, EndpointAddress, Uri, SecurityToken)

Espace de noms: Microsoft.IdentityModel.Protocols.WSTrust
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim factory As ChannelFactory(Of T)
Dim address As EndpointAddress
Dim via As Uri
Dim onBehalfOf As SecurityToken
Dim returnValue As T

returnValue = ChannelFactoryOperations.CreateChannelOnBehalfOf(factory, address, via, onBehalfOf)

Syntaxe

'Déclaration
<ExtensionAttribute> _
Public Shared Function CreateChannelOnBehalfOf(Of T) ( _
    factory As ChannelFactory(Of T), _
    address As EndpointAddress, _
    via As Uri, _
    onBehalfOf As SecurityToken _
) As T
[ExtensionAttribute] 
public static T CreateChannelOnBehalfOf<T> (
    ChannelFactory<T> factory,
    EndpointAddress address,
    Uri via,
    SecurityToken onBehalfOf
)
[ExtensionAttribute] 
public:
generic<typename T>
static T CreateChannelOnBehalfOf (
    ChannelFactory<T>^ factory, 
    EndpointAddress^ address, 
    Uri^ via, 
    SecurityToken^ onBehalfOf
)

Paramètres

  • factory
     
  • address
     
  • via
     
  • onBehalfOf
     

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

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

Voir aussi

Référence

Classe ChannelFactoryOperations
Membres ChannelFactoryOperations
Espace de noms Microsoft.IdentityModel.Protocols.WSTrust