次の方法で共有


ChannelServices.GetChannel メソッド

指定した名前を持つ登録されたチャネルを返します。

Public Shared Function GetChannel( _
   ByVal name As String _) As IChannel
[C#]
public static IChannel GetChannel(stringname);
[C++]
public: static IChannel* GetChannel(String* name);
[JScript]
public static function GetChannel(
   name : String) : IChannel;

パラメータ

  • name
    チャネル名。

戻り値

登録されたチャネルへのインターフェイス。チャネルが登録されていない場合は null 参照 (Visual Basic では Nothing) 。

例外

例外の種類 条件
SecurityException 直前の呼び出し元に、インフラストラクチャ アクセス許可がありません。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

ChannelServices クラス | ChannelServices メンバ | System.Runtime.Remoting.Channels 名前空間