.NET Framework Class Library
IcmpV6Statistics..::.MembershipQueriesReceived Property

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

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

Visual Basic (Declaration)
Public MustOverride ReadOnly Property MembershipQueriesReceived As Long
Visual Basic (Usage)
Dim instance As IcmpV6Statistics
Dim value As Long

value = instance.MembershipQueriesReceived
C#
public abstract long MembershipQueriesReceived { get; }
Visual C++
public:
virtual property long long MembershipQueriesReceived {
    long long get () abstract;
}
JScript
public abstract function get MembershipQueriesReceived () : long

Property Value

Type: System..::.Int64
An Int64 value that specifies the total number of Group Membership Query messages received.
Remarks

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.

Examples

The following example displays the value of this property.

Visual Basic
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 'ShowIcmpV6MembershipData


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

Visual C++
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 );
}
CPP_OLD
void ShowIcmpV6MembershipData ()
{
    IPGlobalProperties* properties = IPGlobalProperties::GetIPGlobalProperties();
    IcmpV6Statistics* statistics = properties->GetIcmpV6Statistics();
    Console::WriteLine (S"  Queries .............................. Sent: {0,-10}   Received: {1,-10}",
        __box(statistics->MembershipQueriesSent), __box(statistics->MembershipQueriesReceived));
    Console::WriteLine (S"  Reductions ........................... Sent: {0,-10}   Received: {1,-10}",
        __box(statistics->MembershipReductionsSent), __box(statistics->MembershipReductionsReceived));
    Console::WriteLine (S"  Reports .............................. Sent: {0,-10}   Received: {1,-10}",
        __box(statistics->MembershipReportsSent), __box(statistics->MembershipReportsReceived));
}

Platforms

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0
See Also

Reference

Tags :


Page view tracker