共用方式為


IServerChannelSinkProvider.GetChannelData(IChannelDataStore) 方法

定義

傳回與目前接收相關聯通道的通道資料。

public:
 void GetChannelData(System::Runtime::Remoting::Channels::IChannelDataStore ^ channelData);
public void GetChannelData (System.Runtime.Remoting.Channels.IChannelDataStore channelData);
[System.Security.SecurityCritical]
public void GetChannelData (System.Runtime.Remoting.Channels.IChannelDataStore channelData);
abstract member GetChannelData : System.Runtime.Remoting.Channels.IChannelDataStore -> unit
[<System.Security.SecurityCritical>]
abstract member GetChannelData : System.Runtime.Remoting.Channels.IChannelDataStore -> unit
Public Sub GetChannelData (channelData As IChannelDataStore)

參數

channelData
IChannelDataStore

IChannelDataStore 物件,通道資料會在其中傳回。

屬性

例外狀況

立即呼叫端沒有基礎結構使用權限。

範例

array<String^>^channelUri = gcnew array<String^>(5);
IChannelDataStore^ myIChannelDataStore = gcnew ChannelDataStore( channelUri );
IChannelDataStore^ myIChannelDataStore1 = gcnew ChannelDataStore( channelUri );
myIServerChannelSinkProvider->GetChannelData( myIChannelDataStore );
myIServerChannelSinkProvider1->GetChannelData( myIChannelDataStore1 );
string[] channelUri = new String[5];
IChannelDataStore myIChannelDataStore  = new ChannelDataStore(channelUri);
IChannelDataStore myIChannelDataStore1 = new ChannelDataStore(channelUri);
myIServerChannelSinkProvider.GetChannelData(myIChannelDataStore);
myIServerChannelSinkProvider1.GetChannelData(myIChannelDataStore1);
Dim channelUri() As String = New String(4) {}
Dim myIChannelDataStore = New ChannelDataStore(channelUri)
Dim myIChannelDataStore1 = New ChannelDataStore(channelUri)
myIServerChannelSinkProvider.GetChannelData(myIChannelDataStore)
myIServerChannelSinkProvider1.GetChannelData(myIChannelDataStore1)

適用於