IChannelReceiver.StopListening メソッド
アセンブリ: mscorlib (mscorlib.dll 内)
構文
例外
解説データ オブジェクトは、特定の状態をチャネルに渡すために使用できます。
使用例' Extract the channel URI and the remote well known object URI from the specified URL. Console.WriteLine("Parsed : " + _ myHttpServerChannel.Parse(myHttpServerChannel.GetChannelUri() + "/SayHello", myString)) Console.WriteLine("Remote WellKnownObject : " + myString) Console.WriteLine("Hit <enter> to stop listening...") Console.ReadLine() ' Stop listening to channel. myHttpServerChannel.StopListening(CType(myPort, Object))
// Extract the channel URI and the remote well known object URI from the specified URL. Console.WriteLine("Parsed : " + myHttpServerChannel.Parse(myHttpServerChannel.GetChannelUri()+ "/SayHello",out myString)); Console.WriteLine("Remote WellKnownObject : " + myString); Console.WriteLine("Hit <enter> to stop listening..."); Console.ReadLine(); // Stop listening to channel. myHttpServerChannel.StopListening((object)myPort);
// Extract the channel URI and the remote well known object URI from the specified URL. Console::WriteLine( "Parsed : {0}", myHttpServerChannel->Parse( String::Concat( myHttpServerChannel->GetChannelUri(), "/SayHello" ), myString ) ); Console::WriteLine( "Remote WellKnownObject : {0}", myString ); Console::WriteLine( "Hit <enter> to stop listening..." ); Console::ReadLine(); // Stop listening to channel. myHttpServerChannel->StopListening( myPort );
.NET Framework のセキュリティ- SecurityPermission (インフラストラクチャ コードを操作するために必要なアクセス許可)。要求値 : SecurityAction.LinkDemand; アクセス許可値 : SecurityPermissionFlag.Infrastructure
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- IChannelReceiver.StopListening メソッドのページへのリンク