ChannelServices.GetChannel メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ChannelServices.GetChannel メソッドの意味・解説 

ChannelServices.GetChannel メソッド

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

名前空間: System.Runtime.Remoting.Channels
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared Function GetChannel
 ( _
    name As String _
) As IChannel
Dim name As String
Dim returnValue As IChannel

returnValue = ChannelServices.GetChannel(name)
public static IChannel GetChannel (
    string name
)
public:
static IChannel^ GetChannel (
    String^ name
)
public static IChannel GetChannel (
    String name
)
public static function GetChannel
 (
    name : String
) : IChannel

パラメータ

name

チャネル名。

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

例外例外
使用例使用例
Dim myClientChannel As New
 HttpChannel(myProperties, New SoapClientFormatterSinkProvider(),
 _
                                                   New SoapServerFormatterSinkProvider())
ChannelServices.RegisterChannel(myClientChannel)
' Get the registered channel. 
Console.WriteLine("Channel Name : " + ChannelServices.GetChannel
 _
                                             (myClientChannel.ChannelName).ChannelName)
Console.WriteLine("Channel Priorty : " + _
      ChannelServices.GetChannel(myClientChannel.ChannelName).ChannelPriority.ToString())
HttpChannel myClientChannel = new HttpChannel(myProperties,
   new SoapClientFormatterSinkProvider(),
   new SoapServerFormatterSinkProvider());
ChannelServices.RegisterChannel(myClientChannel);
// Get the registered channel. 
Console.WriteLine("Channel Name : "+ChannelServices.GetChannel(
   myClientChannel.ChannelName).ChannelName);
Console.WriteLine("Channel Priorty : "+ChannelServices.GetChannel(
   myClientChannel.ChannelName).ChannelPriority);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ChannelServices クラス
ChannelServices メンバ
System.Runtime.Remoting.Channels 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ChannelServices.GetChannel メソッド」の関連用語

ChannelServices.GetChannel メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ChannelServices.GetChannel メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS