Bagikan melalui


IcmpV6Statistics.MembershipQueriesReceived Properti

Definisi

Mendapatkan jumlah pesan Kueri Keanggotaan Grup Protokol Manajemen Grup Internet (IGMP) yang diterima.

public:
 abstract property long MembershipQueriesReceived { long get(); };
public abstract long MembershipQueriesReceived { get; }
member this.MembershipQueriesReceived : int64
Public MustOverride ReadOnly Property MembershipQueriesReceived As Long

Nilai Properti

Nilai Int64 yang menentukan jumlah total pesan Kueri Keanggotaan Grup yang diterima.

Contoh

Contoh berikut menampilkan nilai properti ini.

void ShowIcmpV6MembershipData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
   Console::WriteLine( "  Queries .............................. Sent: {0,-10}   Received: {1,-10}", 
      statistics->MembershipQueriesSent, statistics->MembershipQueriesReceived );
   Console::WriteLine( "  Reductions ........................... Sent: {0,-10}   Received: {1,-10}", 
      statistics->MembershipReductionsSent, statistics->MembershipReductionsReceived );
   Console::WriteLine( "  Reports .............................. Sent: {0,-10}   Received: {1,-10}", 
      statistics->MembershipReportsSent, statistics->MembershipReportsReceived );
}
public static void ShowIcmpV6MembershipData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine ("  Queries .............................. Sent: {0,-10}   Received: {1,-10}",
    statistics.MembershipQueriesSent, statistics.MembershipQueriesReceived);
    Console.WriteLine ("  Reductions ........................... Sent: {0,-10}   Received: {1,-10}",
    statistics.MembershipReductionsSent, statistics.MembershipReductionsReceived);
    Console.WriteLine ("  Reports .............................. Sent: {0,-10}   Received: {1,-10}",
    statistics.MembershipReportsSent, statistics.MembershipReportsReceived);
}
Public Shared Sub ShowIcmpV6MembershipData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine("  Queries .............................. Sent: {0,-10}   Received: {1,-10}", statistics.MembershipQueriesSent, statistics.MembershipQueriesReceived)
    Console.WriteLine("  Reductions ........................... Sent: {0,-10}   Received: {1,-10}", statistics.MembershipReductionsSent, statistics.MembershipReductionsReceived)
    Console.WriteLine("  Reports .............................. Sent: {0,-10}   Received: {1,-10}", statistics.MembershipReportsSent, statistics.MembershipReportsReceived)

End Sub

Keterangan

Router multicast mengirim pesan Kueri Keanggotaan Grup untuk mempelajari grup mana yang memiliki anggota di setiap jaringan fisik yang terpasang. Komputer host merespons pesan Kueri Keanggotaan Grup dengan mengirim Laporan Keanggotaan Grup untuk setiap grup multicast yang digabungkan oleh host. Komputer host juga dapat mengirim Laporan Keanggotaan Grup saat bergabung dengan grup multicast baru. Pesan Pengurangan Keanggotaan Grup dikirim ketika komputer host meninggalkan grup multicast.

Berlaku untuk