IcmpV6Statistics.MembershipReportsReceived 属性

定义

获取接收的 Internet 组管理协议 (IGMP) 成员报告消息数。Gets the number of Internet Group Management Protocol (IGMP) Group Membership Report messages received.

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

属性值

Int64

Int64 值,指定接收的组成员报告消息的总数。An Int64 value that specifies the total number of Group Membership Report messages received.

示例

下面的示例显示此属性的值。The following example displays the value of this property.

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


注解

多播路由器发送组成员身份查询消息,以了解哪些组在各自连接的物理网络上拥有成员。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.

适用于