ChannelServices.RegisteredChannels Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a list of currently registered channels.
public:
static property cli::array <System::Runtime::Remoting::Channels::IChannel ^> ^ RegisteredChannels { cli::array <System::Runtime::Remoting::Channels::IChannel ^> ^ get(); };
public static System.Runtime.Remoting.Channels.IChannel[] RegisteredChannels { get; }
public static System.Runtime.Remoting.Channels.IChannel[] RegisteredChannels { [System.Security.SecurityCritical] get; }
static member RegisteredChannels : System.Runtime.Remoting.Channels.IChannel[]
[<get: System.Security.SecurityCritical>]
static member RegisteredChannels : System.Runtime.Remoting.Channels.IChannel[]
Public Shared ReadOnly Property RegisteredChannels As IChannel()
Property Value
IChannel[]
An array of all the currently registered channels.
- Attributes
Exceptions
The immediate caller does not have infrastructure permission.
Examples
// Retrieve and print information about the registered channels.
array<IChannel^>^myIChannelArray = ChannelServices::RegisteredChannels;
for ( int i = 0; i < myIChannelArray->Length; i++ )
{
Console::WriteLine( "Name of Channel: {0}", myIChannelArray[ i ]->ChannelName );
Console::WriteLine( "Priority of Channel: {0}", myIChannelArray[ i ]->ChannelPriority );
}
// Retrieve and print information about the registered channels.
IChannel[] myIChannelArray = ChannelServices.RegisteredChannels;
for (int i=0; i<myIChannelArray.Length; i++)
{
Console.WriteLine("Name of Channel: {0}", myIChannelArray[i].ChannelName);
Console.WriteLine("Priority of Channel: {0}",
+myIChannelArray[i].ChannelPriority);
}
' Retrieve and print information about the registered channels.
Dim myIChannelArray As IChannel() = ChannelServices.RegisteredChannels
Dim i As Integer
For i = 0 To myIChannelArray.Length - 1
Console.WriteLine("Name of Channel: {0}", myIChannelArray(i).ChannelName)
Console.WriteLine("Priority of Channel: {0}", + myIChannelArray(i).ChannelPriority)
Next i
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про