語言

IOutputSessionChannel 介面

定義

定義將輸出通道與會話產生關聯的介面。

public interface class IOutputSessionChannel : System::ServiceModel::Channels::IOutputChannel, System::ServiceModel::Channels::ISessionChannel<System::ServiceModel::Channels::IOutputSession ^>
public interface IOutputSessionChannel : System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.Channels.ISessionChannel<System.ServiceModel.Channels.IOutputSession>
type IOutputSessionChannel = interface
    interface IOutputChannel
    interface IChannel
    interface ISessionChannel<IOutputSession>
    interface ICommunicationObject
type IOutputSessionChannel = interface
    interface IChannel
    interface ICommunicationObject
    interface IOutputChannel
    interface ISessionChannel<IOutputSession>
type IOutputSessionChannel = interface
    interface IOutputChannel
    interface IChannel
    interface ICommunicationObject
    interface ISessionChannel<IOutputSession>
Public Interface IOutputSessionChannel
Implements IOutputChannel, ISessionChannel(Of IOutputSession)
實作

備註

Important

使用不受信任的資料呼叫實作此介面的類別的方法存在安全風險。 呼叫這些方法,從實作此介面的類別中呼叫,僅使用受信任的資料。 如需詳細資訊,請參閱 驗證所有輸入。

介面 IOutputSessionChannel 表示 a IOutputChannel 實 IOutputSession 作語意。

與 關聯IOutputSession的 可IOutputSessionChannel透過屬性Session檢索。

屬性

名稱 Description
RemoteAddress

取得訊息在輸出通道發送的服務目的地。

(繼承來源 IOutputChannel)
Session

會取得與此頻道相關的會話類型。

(繼承來源 ISessionChannel<TSession>)
State

取得通訊導向物件的目前狀態。

(繼承來源 ICommunicationObject)
Via

取得包含傳送位址的 URI,該位址在輸出通道上傳送訊息。

(繼承來源 IOutputChannel)

方法

名稱 Description
Abort()

導致通訊物件立即從其目前狀態轉換成已關閉狀態。

(繼承來源 ICommunicationObject)
BeginClose(AsyncCallback, Object)

開始異步操作以關閉通訊物件。

(繼承來源 ICommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object)

開始異步操作,以關閉具有指定逾時的通訊物件。

(繼承來源 ICommunicationObject)
BeginOpen(AsyncCallback, Object)

開始異步操作以開啟通訊物件。

(繼承來源 ICommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object)

開始異步操作,以在指定的時間間隔內開啟通訊物件。

(繼承來源 ICommunicationObject)
BeginSend(Message, AsyncCallback, Object)

開始非同步操作,將訊息傳送至輸出通道的目的地。

(繼承來源 IOutputChannel)
BeginSend(Message, TimeSpan, AsyncCallback, Object)

開始非同步操作,在指定時間間隔內將訊息傳送至輸出通道的目的地。

(繼承來源 IOutputChannel)
Close()

使通訊物件從其目前狀態轉換成已關閉狀態。

(繼承來源 ICommunicationObject)
Close(TimeSpan)

使通訊物件從其目前狀態轉換成已關閉狀態。

(繼承來源 ICommunicationObject)
EndClose(IAsyncResult)

完成異步操作以關閉通訊物件。

(繼承來源 ICommunicationObject)
EndOpen(IAsyncResult)

完成異步操作以開啟通訊物件。

(繼承來源 ICommunicationObject)
EndSend(IAsyncResult)

完成非同步操作,將訊息傳送至輸出通道的目的地。

(繼承來源 IOutputChannel)
GetProperty<T>()

回傳一個從通道堆疊中適當層請求的類型物件(若存在)。

(繼承來源 IChannel)
Open()

使通訊物件從已建立的狀態轉換成開啟的狀態。

(繼承來源 ICommunicationObject)
Open(TimeSpan)

使通訊物件在指定的時間間隔內,從建立的狀態轉換成開啟的狀態。

(繼承來源 ICommunicationObject)
Send(Message, TimeSpan)

在指定時間間隔內,於電流輸出通道發送訊息。

(繼承來源 IOutputChannel)
Send(Message)

傳送訊息至輸出通道的目的地。

(繼承來源 IOutputChannel)

事件

名稱 Description
Closed

當通訊物件完成從關閉狀態轉換成關閉狀態時發生。

(繼承來源 ICommunicationObject)
Closing

當通訊物件第一次進入關閉狀態時發生。

(繼承來源 ICommunicationObject)
Faulted

當通訊物件第一次進入錯誤狀態時發生。

(繼承來源 ICommunicationObject)
Opened

當通訊物件完成從開啟狀態轉換成開啟狀態時發生。

(繼承來源 ICommunicationObject)
Opening

當通訊物件第一次進入開啟狀態時發生。

(繼承來源 ICommunicationObject)

適用於