IcmpV6Statistics.MembershipReductionsSent Proprietà

Definizione

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

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

Valore della proprietà

Valore Int64 che specifica il numero totale di messaggi Group Membership Reduction 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