Condividi tramite


IcmpV6Statistics.MembershipQueriesReceived Proprietà

Definizione

Ottiene il numero di messaggi Group Membership Query del protocollo IGMP ricevuti.

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

Valore della proprietà

Valore Int64 che specifica il numero totale di messaggi Group Membership Query ricevuti.

Esempio

Nell'esempio seguente viene visualizzato il valore di questa proprietà.

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

Commenti

I router multicast inviano messaggi di Query di appartenenza al gruppo per apprendere quali gruppi hanno membri in ognuna delle reti fisiche associate. I computer host rispondono a un messaggio query di appartenenza al gruppo inviando un report di appartenenza al gruppo per ogni gruppo multicast aggiunto dall'host. Un computer host può anche inviare un report di appartenenza al gruppo quando partecipa a un nuovo gruppo multicast. I messaggi di riduzione delle appartenenze di gruppo vengono inviati quando un computer host lascia un gruppo multicast.

Si applica a