Compartilhar via


IcmpV6Statistics.MembershipQueriesSent Propriedade

Definição

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

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

Valor da propriedade

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

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