ChannelFactory(Of TChannel).CreateChannelWithOnBehalfOfToken Method (SecurityToken, EndpointAddress)
Creates a channel that is used to send messages to a service with an on behalf of security token at a specific endpoint address.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Public Function CreateChannelWithOnBehalfOfToken ( _ onBehalfOf As SecurityToken, _ address As EndpointAddress _ ) As TChannel
- Type: System.IdentityModel.Tokens.SecurityToken
The security token.
- Type: System.ServiceModel.EndpointAddress
The endpoint address that provides the location of the service.
Return ValueType: TChannel
The created channel factory.