Bagikan melalui


IpcChannel.ChannelPriority Properti

Definisi

Mendapatkan prioritas saluran saat ini.

public:
 property int ChannelPriority { int get(); };
public int ChannelPriority { get; }
member this.ChannelPriority : int
Public ReadOnly Property ChannelPriority As Integer

Nilai Properti

Bilangan bulat yang mewakili prioritas yang ditetapkan ke saluran.

Penerapan

Contoh

Contoh kode berikut menunjukkan cara menggunakan ChannelPriority properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk IpcChannel kelas .

// Show the priority of the channel.
Console::WriteLine( L"The priority of the channel is {0}.", serverChannel->ChannelPriority );
// Show the priority of the channel.
Console.WriteLine("The priority of the channel is {0}.",
    serverChannel.ChannelPriority);

Keterangan

Prioritas defaultnya adalah 20.

Berlaku untuk