SPChannelFactoryOperations.CreateChannelAsProcess<TChannel> method (ChannelFactory<TChannel>, EndpointAddress, Uri)

Creates a channel that is used to send messages to a service as the current process identity with the specified kind of channel, factory, endpoint address, and URI.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateChannelAsProcess(Of TChannel) ( _
    factory As ChannelFactory(Of TChannel), _
    address As EndpointAddress, _
    via As Uri _
) As TChannel
'Usage
Dim factory As ChannelFactory(Of TChannel)
Dim address As EndpointAddress
Dim via As Uri
Dim returnValue As TChannel

returnValue = factory.CreateChannelAsProcess(address, _
    via)
public static TChannel CreateChannelAsProcess<TChannel>(
    this ChannelFactory<TChannel> factory,
    EndpointAddress address,
    Uri via
)

Type parameters

  • TChannel
    The kind of channel to configure.

Parameters

  • via
    Type: System.Uri

    The [Uri] that contains the transport address to which the channel sends messages.

Return value

Type: TChannel
The TChannel of type [IChannel] created by the factory.

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.15) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.15).

See also

Reference

SPChannelFactoryOperations class

SPChannelFactoryOperations members

CreateChannelAsProcess overload

Microsoft.SharePoint namespace