共用方式為


IcmpV6Statistics.MembershipReportsSent 屬性

定義

取得已傳送的網際網路群組管理通訊協定 (IGMP)「群組成員資格報告」訊息數目。

public:
 abstract property long MembershipReportsSent { long get(); };
public abstract long MembershipReportsSent { get; }
member this.MembershipReportsSent : int64
Public MustOverride ReadOnly Property MembershipReportsSent 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

備註

多播路由器會傳送群組成員資格查詢訊息,以瞭解哪些群組在其每個鏈接的實體網路上都有成員。 主計算機會針對主機加入的每個多播群組傳送群組成員資格報告,以回應群組成員資格查詢訊息。 主電腦也可以在加入新的多播群組時傳送群組成員資格報告。 當主電腦離開多播群組時,就會傳送群組成員資格縮小訊息。

適用於