Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IInteractiveChannelInitializer::BeginDisplayInitializationUI Method (IClientChannel^, AsyncCallback^, Object^)

 

An asynchronous call to begin using a user interface to obtain credential information.

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

IAsyncResult^ BeginDisplayInitializationUI(
	IClientChannel^ channel,
	AsyncCallback^ callback,
	Object^ state
)

Parameters

channel
Type: System.ServiceModel::IClientChannel^

The client channel.

callback
Type: System::AsyncCallback^

The callback object.

state
Type: System::Object^

Any state data.

Return Value

Type: System::IAsyncResult^

The System::IAsyncResult to use to call back when processing has completed.

To implement IInteractiveChannelInitializer, perform the following steps in IInteractiveChannelInitializer::BeginDisplayInitializationUI:

  1. Prompt the user in what way you see fit and obtain an appropriate System.Net::NetworkCredential.

  2. Add a custom channel parameter object to the collection returned by the IChannel::GetProperty<T> method on the IClientChannel object with a type parameter of System.ServiceModel.Channels::ChannelParameterCollection. This channel parameter object is used by the custom System.ServiceModel::ClientCredentialsSecurityTokenManager to establish the security tokens for the channel.

  3. Return.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft