IChannel.ChannelPriority プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IChannel.ChannelPriority プロパティの意味・解説 

IChannel.ChannelPriority プロパティ

チャネル優先順位取得します

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

Dim instance As IChannel
Dim value As Integer

value = instance.ChannelPriority
int ChannelPriority { get; }
property int ChannelPriority {
    int get ();
}
/** @property */
int get_ChannelPriority ()
function get ChannelPriority () : int

プロパティ
チャネル優先順位を示す整数

例外例外
解説解説
使用例使用例
  ' Creating the 'IDictionary' to set the server object properties.
  Dim myDictionary As  New
 Hashtable()
  myDictionary("name") = "HttpClientChannel"
  myDictionary("priority") = 2
  ' Set the properties along with the constructor.
Dim myHttpClientChannel As New
 _
          HttpClientChannel( myDictionary, New BinaryClientFormatterSinkProvider)
  ' Register the server channel.
  ChannelServices.RegisterChannel(myHttpClientChannel)
  Dim myHelloServer1 As MyHelloServer = CType(Activator.GetObject(GetType(MyHelloServer),
 _
          "http://localhost:8085/SayHello"), MyHelloServer)
  If myHelloServer1 Is Nothing
 Then
     System.Console.WriteLine("Could not locate server")
  Else
     Console.WriteLine(myHelloServer1.myHelloMethod("Client"))
     ' Get the name of the channel.
     Console.WriteLine("Channel Name :" + myHttpClientChannel.ChannelName)
     ' Get the channel priority.
     Console.WriteLine("ChannelPriority :" + myHttpClientChannel.ChannelPriority.ToString())
     Dim myString, myObjectURI1 As String
     Console.WriteLine("Parse :" + _
          myHttpClientChannel.Parse("http://localhost:8085/SayHello",
 myString) + myString)
     ' Get the key count.
     System.Console.WriteLine("Keys.Count : " + myHttpClientChannel.Keys.Count.ToString())
     ' Get the channel message sink that delivers message to the specified
 url.
     Dim myIMessageSink As IMessageSink =myHttpClientChannel.CreateMessageSink(
 _
          "http://localhost:8085/NewEndPoint", Nothing,
 myObjectURI1)
   Console.WriteLine("The channel message sink that delivers the
 messages to the URL is :" + _
           CType(myIMessageSink, Object).ToString)
   Console.WriteLine("URI of the new channel message sink is:
 " + myObjectURI1)
  End If 
// Creating the 'IDictionary' to set the server object properties.
IDictionary myDictionary = new Hashtable();
myDictionary["name"]="HttpClientChannel";
myDictionary["priority"]=2;
// Set the properties along with the constructor.
HttpClientChannel myHttpClientChannel = 
      new HttpClientChannel(myDictionary,new
 BinaryClientFormatterSinkProvider());
// Register the server channel.
ChannelServices.RegisterChannel(myHttpClientChannel);
MyHelloServer myHelloServer1 = (MyHelloServer)Activator.GetObject(
typeof(MyHelloServer), "http://localhost:8085/SayHello");
if (myHelloServer1 == null)
   System.Console.WriteLine("Could not locate server");
else
{
   Console.WriteLine(myHelloServer1.myHelloMethod("Client"));
   // Get the name of the channel.
   Console.WriteLine("Channel Name :"+myHttpClientChannel.ChannelName);
   // Get the channel priority.
   Console.WriteLine("ChannelPriority :"+myHttpClientChannel.ChannelPriority.ToString());
   string myString,myObjectURI1;
   Console.WriteLine("Parse :" + 
       myHttpClientChannel.Parse("http://localhost:8085/SayHello",out
 myString)+myString);
   // Get the key count.
   System.Console.WriteLine("Keys.Count : " + myHttpClientChannel.Keys.Count);
   // Get the channel message sink that delivers message to the specified
 url.
   IMessageSink myIMessageSink = 
   myHttpClientChannel.CreateMessageSink("http://localhost:8085/NewEndPoint",
 
                                                                   null,out
 myObjectURI1);
   Console.WriteLine("The channel message sink that delivers the messages to
 the URL is : "
                           +myIMessageSink.ToString());
   Console.WriteLine("URI of the new channel message sink
 is: " +myObjectURI1);
}
// Creating the 'IDictionary' to set the server object properties.
IDictionary^ myDictionary = gcnew Hashtable;
myDictionary[ "name" ] = "HttpClientChannel";
myDictionary[ "priority" ] = 2;

// Set the properties along with the constructor.
HttpClientChannel^ myHttpClientChannel = gcnew HttpClientChannel( myDictionary,gcnew
 BinaryClientFormatterSinkProvider );

// Register the server channel.
ChannelServices::RegisterChannel( myHttpClientChannel );
MyHelloServer ^ myHelloServer1 = dynamic_cast<MyHelloServer^>(Activator::GetObject(
 MyHelloServer::typeid, "http://localhost:8085/SayHello"
 ));
if ( myHelloServer1 == nullptr )
      System::Console::WriteLine( "Could not locate server" );
else
{
   Console::WriteLine( myHelloServer1->myHelloMethod( "Client" ) );

   // Get the name of the channel.
   Console::WriteLine( "Channel Name :{0}", myHttpClientChannel->ChannelName
 );

   // Get the channel priority.
   Console::WriteLine( "ChannelPriority :{0}", myHttpClientChannel->ChannelPriority
 );
   String^ myString;
   String^ myObjectURI1;
   Console::WriteLine( "Parse :{0}{1}", myHttpClientChannel->Parse(
 "http://localhost:8085/SayHello",  myString ), myString
 );

   // Get the key count.
   System::Console::WriteLine( "Keys->Count : {0}", myHttpClientChannel->Keys->Count
 );

   // Get the channel message sink that delivers message to the specified
 url.
   IMessageSink^ myIMessageSink = myHttpClientChannel->CreateMessageSink( "http://localhost:8085/NewEndPoint",
 nullptr,  myObjectURI1 );
   Console::WriteLine( "The channel message sink that delivers the messages
 to the URL is : {0}", myIMessageSink );
   Console::WriteLine( "URI of the new channel message sink
 is: {0}", myObjectURI1 );
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IChannel インターフェイス
IChannel メンバ
System.Runtime.Remoting.Channels 名前空間
HttpChannel
HttpServerChannel
HttpClientChannel
TcpChannel
TcpServerChannel
TcpClientChannel


このページでは「.NET Framework クラス ライブラリ リファレンス」からIChannel.ChannelPriority プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からIChannel.ChannelPriority プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からIChannel.ChannelPriority プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

IChannel.ChannelPriority プロパティのお隣キーワード
検索ランキング

   

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



IChannel.ChannelPriority プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS