ClientBase<TChannel>.DisplayInitializationUI 方法

定義

如果需要使用者介面來初始化通道才能使用,會先指示該通道顯示使用者介面。Instructs the inner channel to display a user interface if one is required to initialize the channel prior to using it.

public:
 void DisplayInitializationUI();
public void DisplayInitializationUI ();
member this.DisplayInitializationUI : unit -> unit
Public Sub DisplayInitializationUI ()

備註

如果內部通道需要使用者互動才能建構通道,請呼叫 DisplayInitializationUI 方法。Call the DisplayInitializationUI method if the inner channel requires user interaction prior to constructing the channel. 例如,若使用者必須輸入使用者名稱與密碼來保護通道安全,呼叫此方法即可叫用該自訂 System.ServiceModel.Dispatcher.IInteractiveChannelInitializerFor example, if a user must enter a username and password to secure the channel, that custom System.ServiceModel.Dispatcher.IInteractiveChannelInitializer can be invoked by calling this method.

適用於

另請參閱