Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ChannelFactory<TChannel>.CreateChannelWithOnBehalfOfToken Method (SecurityToken, EndpointAddress)

.NET Framework 4.6 and 4.5

Creates a channel that is used to send messages to a service with an on behalf of security token at a specific endpoint address.

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

public TChannel CreateChannelWithOnBehalfOfToken(
	SecurityToken onBehalfOf,
	EndpointAddress address
)

Parameters

onBehalfOf
Type: System.IdentityModel.Tokens.SecurityToken

The security token.

address
Type: System.ServiceModel.EndpointAddress

The endpoint address that provides the location of the service.

Return Value

Type: TChannel
The created channel factory.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft