IcmpV6Statistics.MembershipQueriesSent Proprietà

Definizione

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

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

Valore della proprietà

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

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 Group Membership Query per scoprire quali gruppi hanno membri in ognuna delle reti fisiche collegate. I computer host rispondono a un messaggio di query sull'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 viene aggiunto a un nuovo gruppo multicast. I messaggi di riduzione dell'appartenenza al gruppo vengono inviati quando un computer host lascia un gruppo multicast.

Si applica a