Export (0) Print
Expand All

IcmpV6Statistics.MembershipQueriesReceived Property

Note: This property is new in the .NET Framework version 2.0.

Gets the number of Internet Group management Protocol (IGMP) Group Membership Query messages received.

Namespace: System.Net.NetworkInformation
Assembly: System (in system.dll)

public abstract long MembershipQueriesReceived { get; }
/** @property */
public abstract long get_MembershipQueriesReceived ()

public abstract function get MembershipQueriesReceived () : long

Property Value

An Int64 value that specifies the total number of Group Membership Query messages received.

Multicast routers send Group Membership Query messages to learn which groups have members on each of their attached physical networks. Host computers respond to a Group Membership Query message by sending a Group Membership Report for each multicast group joined by the host. A host computer can also send a Group Membership Report when it joins a new multicast group. Group Membership Reduction messages are sent when a host computer leaves a multicast group.

The following example displays the value of this property.

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);
}


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft