SPChannelFactoryOperations.CreateChannelActingAsLoggedOnUser<TChannel> Method (ChannelFactory<TChannel>)

CreateChannelAsLoggedOnUser creates a WCF channel, using an 'act as' token. The 'act as' token represents process identity (actor) and user identity. This token delegates the user’s identity to the back end server. Delegation is an expensive operation.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateChannelActingAsLoggedOnUser(Of TChannel) ( _
    factory As ChannelFactory(Of TChannel) _
) As TChannel
'Usage
Dim factory As ChannelFactory(Of TChannel)
Dim returnValue As TChannel

returnValue = factory.CreateChannelActingAsLoggedOnUser()
public static TChannel CreateChannelActingAsLoggedOnUser<TChannel>(
    this ChannelFactory<TChannel> factory
)

Type Parameters

Parameters

Return Value

Type: TChannel
Returns [{0}].

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ChannelFactory<TChannel>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=office.14) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.14).

See Also

Reference

SPChannelFactoryOperations Class

SPChannelFactoryOperations Members

CreateChannelActingAsLoggedOnUser Overload

Microsoft.SharePoint Namespace