QualifierDataCollection.GetEnumerator Método
Definição
Retorna um enumerador para o QualifierDataCollection.Returns an enumerator for the QualifierDataCollection. Esse método é fortemente tipado.This method is strongly typed.
public:
System::Management::QualifierDataCollection::QualifierDataEnumerator ^ GetEnumerator();
public System.Management.QualifierDataCollection.QualifierDataEnumerator GetEnumerator ();
member this.GetEnumerator : unit -> System.Management.QualifierDataCollection.QualifierDataEnumerator
Public Function GetEnumerator () As QualifierDataCollection.QualifierDataEnumerator
Retornos
Um IEnumerator que pode ser usado para iterar pela coleção.An IEnumerator that can be used to iterate through the collection.
Comentários
Você só pode iterar (como em uma instrução Visual Basic .NET For Each ou uma For instrução C#) por meio de um enumerador somente de encaminhamento uma vez.You can only iterate (as in a Visual Basic .NET For Each statement or a C# For statement) through a forward-only enumerator one time. A memória que contém as instâncias é liberada pelo WMI para que o enumerador não possa ser rebobinado.The memory containing the instances is released by WMI so that the enumerator cannot be rewound. Portanto, o Count método não pode ser usado porque requer a rebobinação do enumerador.Therefore, the Count method cannot be used since it requires rewinding the enumerator.
Enumeradores de somente encaminhamento são geralmente muito mais rápidos e usam menos memória do que enumeradores convencionais, mas não permitem chamadas para Reset .Forward-only enumerators are generally much faster and use less memory than conventional enumerators, but they do not allow calls to Reset.
Se um enumerador for rebobinado, os objetos na coleção serão mantidos disponíveis para várias enumerações.If an enumerator is rewindable, the objects in the collection will be kept available for multiple enumerations.
Segurança do .NET Framework.NET Framework Security
Confiança total para o chamador imediato.Full trust for the immediate caller. Este membro não pode ser usado pelo código parcialmente confiável.This member cannot be used by partially trusted code. Para obter mais informações, consulte usando bibliotecas de código parcialmente confiável.For more information, see Using Libraries from Partially Trusted Code.