IcmpV6Statistics.MembershipQueriesSent 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取发送的 Internet 组管理协议 (IGMP) 组成员查询消息数。
public:
abstract property long MembershipQueriesSent { long get(); };
public abstract long MembershipQueriesSent { get; }
member this.MembershipQueriesSent : int64
Public MustOverride ReadOnly Property MembershipQueriesSent As Long
属性值
Int64 值,指定发送的组成员查询消息的总数。
示例
以下示例显示此属性的值。
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
注解
多播路由器发送组成员身份查询消息,以了解哪些组在其每个附加的物理网络上都有成员。 主机计算机通过为主机加入的每个多播组发送组成员身份报告来响应组成员身份查询消息。 主计算机还可以在加入新的多播组时发送组成员身份报告。 当主计算机离开多播组时,将发送组成员身份减少消息。