次の方法で共有


HttpServerChannel コンストラクタ (IDictionary, IServerChannelSinkProvider)

チャネル プロパティとシンクを指定して、HttpServerChannel クラスの新しいインスタンスを初期化します。

名前空間: System.Runtime.Remoting.Channels.Http
アセンブリ: System.Runtime.Remoting (system.runtime.remoting.dll 内)

構文

'宣言
Public Sub New ( _
    properties As IDictionary, _
    sinkProvider As IServerChannelSinkProvider _
)
'使用
Dim properties As IDictionary
Dim sinkProvider As IServerChannelSinkProvider

Dim instance As New HttpServerChannel(properties, sinkProvider)
public HttpServerChannel (
    IDictionary properties,
    IServerChannelSinkProvider sinkProvider
)
public:
HttpServerChannel (
    IDictionary^ properties, 
    IServerChannelSinkProvider^ sinkProvider
)
public HttpServerChannel (
    IDictionary properties, 
    IServerChannelSinkProvider sinkProvider
)
public function HttpServerChannel (
    properties : IDictionary, 
    sinkProvider : IServerChannelSinkProvider
)

パラメータ

  • properties
    現在のチャネルの構成情報を保持しているチャネル プロパティの IDictionary

例外

例外の種類 条件

ArgumentException

構成プロパティの書式が正しくありませんでした。

解説

チャネル構成プロパティの詳細については、「チャネルおよびフォーマッタの構成プロパティ」を参照してください。

シンク機能が不要な場合は、sinkProvider パラメータを null 参照 (Visual Basic では Nothing) に設定します。

使用例

このコンストラクタを使用するコードの例を次に示します。

System.Collections.Hashtable properties =
    new System.Collections.Hashtable();
properties["port"] = 9090;
IServerChannelSinkProvider sinkProvider = null;
HttpServerChannel serverChannel = new HttpServerChannel(
    properties, sinkProvider);
System::Collections::Hashtable^ properties = gcnew System::Collections::Hashtable;
properties->default[ L"port" ] = 9090;
IServerChannelSinkProvider^ sinkProvider = nullptr;
HttpServerChannel^ serverChannel = gcnew HttpServerChannel( properties,sinkProvider );

.NET Framework のセキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「」を参照してください。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

HttpServerChannel クラス
HttpServerChannel メンバ
System.Runtime.Remoting.Channels.Http 名前空間

その他の技術情報

チャネルおよびフォーマッタの構成プロパティ