IcmpV6Statistics.MembershipQueriesReceived Propriedade

Definição

Obtém o número de mensagens de consulta de associação de grupo de protocolo IGMP recebidas.

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

Valor da propriedade

Um Int64 valor que especifica o número total de mensagens de Consulta de Associação de Grupo recebidas.

Exemplos

O exemplo a seguir exibe o valor dessa propriedade.

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

Comentários

Os roteadores multicast enviam mensagens de Consulta de Associação de Grupo para saber quais grupos têm membros em cada uma de suas redes físicas anexadas. Os computadores host respondem a uma mensagem de Consulta de Associação de Grupo enviando um Relatório de Associação de Grupo para cada grupo multicast ingressado pelo host. Um computador host também pode enviar um Relatório de Associação de Grupo quando ele ingressa em um novo grupo multicast. As mensagens de Redução de Associação de Grupo são enviadas quando um computador host sai de um grupo multicast.

Aplica-se a