ChannelFactory(TChannel) Constructor (String, EndpointAddress)
Collapse the table of content
Expand the table of content

ChannelFactory(Of TChannel) Constructor (String, EndpointAddress)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the ChannelFactory(Of TChannel) class with a specified endpoint address and endpoint configuration.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

'Declaration
Public Sub New ( _
	endpointConfigurationName As String, _
	remoteAddress As EndpointAddress _
)

Parameters

endpointConfigurationName
Type: System.String
The name of the file that contains the service endpoint configuration for the channels created by the factory.
remoteAddress
Type: System.ServiceModel.EndpointAddress
The destination EndpointAddress for channels created by the factory.


			'Initialize channel factory with a service configuration file and a remote endpoint address.
			Dim endpointAddress As New EndpointAddress("http://localhost:8000/ChannelApp")
			Dim factory2 As New ChannelFactory(Of IRequestChannel)("MyEndpointConfig", endpointAddress)


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft