Bagikan melalui


IcmpV6Statistics.MembershipQueriesSent Properti

Definisi

Mendapatkan jumlah pesan Kueri Keanggotaan Grup Internet Group Management Protocol (IGMP) yang dikirim.

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

Nilai Properti

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

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