IInteractiveChannelInitializer::BeginDisplayInitializationUI Method (IClientChannel^, AsyncCallback^, Object^)
An asynchronous call to begin using a user interface to obtain credential information.
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:
Prompt the user in what way you see fit and obtain an appropriate System.Net::NetworkCredential.
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.
Return.
Available since 3.0