編輯

共用方式為


IInteractiveChannelInitializer.BeginDisplayInitializationUI Method

Definition

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

public:
 IAsyncResult ^ BeginDisplayInitializationUI(System::ServiceModel::IClientChannel ^ channel, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginDisplayInitializationUI (System.ServiceModel.IClientChannel channel, AsyncCallback callback, object state);
abstract member BeginDisplayInitializationUI : System.ServiceModel.IClientChannel * AsyncCallback * obj -> IAsyncResult
Public Function BeginDisplayInitializationUI (channel As IClientChannel, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

channel
IClientChannel

The client channel.

callback
AsyncCallback

The callback object.

state
Object

Any state data.

Returns

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

Remarks

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 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.

Applies to