SPChannelFactoryOperations.CreateChannelActingAsLoggedOnUser<TChannel> - Méthode (ChannelFactory<TChannel>)
CreateChannelAsLoggedOnUser crée un canal WCF, à l'aide d'un jeton « agir en tant que ». La représente jeton « agir en tant que » processus identité (acteur) et l'identité de l'utilisateur. Ce jeton délègue l'identité de l'utilisateur au serveur back-end. La délégation est une opération coûteuse.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
<ExtensionAttribute> _
Public Shared Function CreateChannelActingAsLoggedOnUser(Of TChannel) ( _
factory As ChannelFactory(Of TChannel) _
) As TChannel
'Utilisation
Dim factory As ChannelFactory(Of TChannel)
Dim returnValue As TChannel
returnValue = factory.CreateChannelActingAsLoggedOnUser()
public static TChannel CreateChannelActingAsLoggedOnUser<TChannel>(
this ChannelFactory<TChannel> factory
)
Paramètres de type
- TChannel
ChannelFactory utilisé pour créer le canal.
Paramètres
factory
Type : System.ServiceModel.ChannelFactory<TChannel>ChannelFactory utilisé pour créer le canal.
Valeur renvoyée
Type : TChannel
Cette propriété renvoie [{0}].
Remarque d’utilisation
Dans Visual Basic et C#, vous pouvez appeler cette méthode en tant que méthode d’instance sur tous les objets de type ChannelFactory<TChannel>. Lorsque vous appelez cette méthode à l’aide de la syntaxe de méthode d’instance, omettez le premier paramètre. Pour plus d’informations, voir https://msdn.microsoft.com/fr-fr/library/bb384936(v=office.15) ou https://msdn.microsoft.com/fr-fr/library/bb383977(v=office.15).
Voir aussi
Référence
SPChannelFactoryOperations classe
SPChannelFactoryOperations - Membres