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

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

IChannel.ChannelName プロパティ

チャネルの名前を取得します

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

Dim instance As IChannel
Dim value As String

value = instance.ChannelName
string ChannelName { get; }
property String^ ChannelName {
    String^ get ();
}
/** @property */
String get_ChannelName ()
function get ChannelName () : String

プロパティ
チャネルの名前。

例外例外
使用例使用例
Dim myPort As Integer =
 8085
' Creating the 'IDictionary' to set the server object properties.
Dim myDictionary  As  New
 Hashtable()
myDictionary("name") = "MyServerChannel1"
myDictionary("priority") = 2
myDictionary("port") = 8085
' Set the properties along with the constructor.
Dim myHttpServerChannel As New
 HttpServerChannel(myDictionary, _
        New BinaryServerFormatterSinkProvider())
' Register the server channel.
ChannelServices.RegisterChannel(myHttpServerChannel)
RemotingConfiguration.RegisterWellKnownServiceType(GetType(MyHelloServer),
 _
        "SayHello", WellKnownObjectMode.SingleCall)
myHttpServerChannel.WantsToListen = true
' Start listening on a specific port.
myHttpServerChannel.StartListening(CType(myPort, Object))
' Get the name of the channel.
Console.WriteLine("ChannelName : " + myHttpServerChannel.ChannelName)
' Get the channel priority.
 Console.WriteLine("ChannelPriority : " + myHttpServerChannel.ChannelPriority.ToString())
' Get the schema of the channel.
 Console.WriteLine("ChannelScheme : " + myHttpServerChannel.ChannelScheme)
' Get the channel URI.
 Console.WriteLine("GetChannelUri : " + myHttpServerChannel.GetChannelUri())
' Indicates whether 'IChannelReceiverHook' wants to be hooked into the
 outside listener service.
Console.WriteLine("WantsToListen : " + myHttpServerChannel.WantsToListen.ToString())
int myPort = 8085;
// Creating the 'IDictionary' to set the server object properties.
IDictionary myDictionary = new Hashtable();
myDictionary["name"] = "MyServerChannel1";
myDictionary["priority"] = 2;
myDictionary["port"] = 8085;
// Set the properties along with the constructor.
HttpServerChannel myHttpServerChannel = new HttpServerChannel(myDictionary
,
                                    new BinaryServerFormatterSinkProvider());
// Register the server channel.
ChannelServices.RegisterChannel(myHttpServerChannel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(MyHelloServer), 
                              "SayHello", WellKnownObjectMode.SingleCall);
  
myHttpServerChannel.WantsToListen = true;
// Start listening on a specific port.
myHttpServerChannel.StartListening((object)myPort);
// Get the name of the channel.
Console.WriteLine("ChannelName : " + myHttpServerChannel.ChannelName);
// Get the channel priority.
Console.WriteLine("ChannelPriority : " + myHttpServerChannel.ChannelPriority);
// Get the schema of the channel.
Console.WriteLine("ChannelScheme : " + myHttpServerChannel.ChannelScheme);
// Get the channel URI.
Console.WriteLine("GetChannelUri : " + myHttpServerChannel.GetChannelUri());
// Indicates whether 'IChannelReceiverHook' wants to be hooked into
 the outside listener service.
Console.WriteLine("WantsToListen : " + myHttpServerChannel.WantsToListen);
int myPort = 8085;

// Creating the 'IDictionary' to set the server object properties.
IDictionary^ myDictionary = gcnew Hashtable;
myDictionary[ "name" ] = "MyServerChannel1";
myDictionary[ "priority" ] = 2;
myDictionary[ "port" ] = 8085;

// Set the properties along with the constructor.
HttpServerChannel^ myHttpServerChannel = gcnew HttpServerChannel( myDictionary,gcnew
 BinaryServerFormatterSinkProvider );

// Register the server channel.
ChannelServices::RegisterChannel( myHttpServerChannel );
RemotingConfiguration::RegisterWellKnownServiceType( MyHelloServer::typeid, "SayHello",
 WellKnownObjectMode::SingleCall );
myHttpServerChannel->WantsToListen = true;

// Start listening on a specific port.
myHttpServerChannel->StartListening( myPort );

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

// Get the channel priority.
Console::WriteLine( "ChannelPriority : {0}", myHttpServerChannel->ChannelPriority
 );

// Get the schema of the channel.
Console::WriteLine( "ChannelScheme : {0}", myHttpServerChannel->ChannelScheme
 );

// Get the channel URI.
Console::WriteLine( "GetChannelUri : {0}", myHttpServerChannel->GetChannelUri()
 );

// Indicates whether 'IChannelReceiverHook' wants to be hooked into
 the outside listener service.
Console::WriteLine( "WantsToListen : {0}", myHttpServerChannel->WantsToListen
 );
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IChannel インターフェイス
IChannel メンバ
System.Runtime.Remoting.Channels 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS