Compartilhar via


Classe ServerGroupCollection

The ServerGroupCollection class represents a collection of ServerGroup objects that represent all the server groups that are defined on the parent object.

Namespace:  Microsoft.SqlServer.Management.RegisteredServers
Assembly:  Microsoft.SqlServer.Management.RegisteredServers (em Microsoft.SqlServer.Management.RegisteredServers.dll)

Sintaxe

'Declaração
Public NotInheritable Class ServerGroupCollection _
    Inherits SfcCollatedDictionaryCollection(Of ServerGroup, ServerGroup..::..Key, ServerGroupParent)
'Uso
Dim instance As ServerGroupCollection
public sealed class ServerGroupCollection : SfcCollatedDictionaryCollection<ServerGroup, ServerGroup..::..Key, ServerGroupParent>
public ref class ServerGroupCollection sealed : public SfcCollatedDictionaryCollection<ServerGroup^, ServerGroup..::..Key^, ServerGroupParent^>
[<SealedAttribute>]
type ServerGroupCollection =  
    class
        inherit SfcCollatedDictionaryCollection<ServerGroup, ServerGroup..::..Key, ServerGroupParent>
    end
public final class ServerGroupCollection extends SfcCollatedDictionaryCollection<ServerGroup, ServerGroup..::..Key, ServerGroupParent>

O tipo ServerGroupCollection expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ServerGroupCollection Initializes a new instance of the ServerGroupCollection class based on the specified parent object and the specified comparison interface.

Início

Propriedades

  Nome Descrição
Propriedade pública Ascending Gets or sets a value indicating whether to sort in ascending order. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade pública Count Gets the number of elements contained in the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade protegida CultureInfo Gets or sets the CultureInfo object that is used by the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade protegida IgnoreCase Gets or sets a value indicating whether the collection is case-sensitive. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade protegida Initialized Gets a value indicating whether the collection has been initialized. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade pública IsReadOnly Gets a value indicating whether the collection is read-only. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade pública IsSynchronized Gets or sets a value indicating whether access to the collection is synchronized (thread safe). Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade pública Item[ ( [ ( String] ) ] ) Gets a ServerGroup object in the collection by name.
Propriedade pública Item[ ( [ ( K] ) ] ) Gets the item specified by the key. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade protegida Parent Gets or sets the type of the parent object. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Propriedade pública SyncRoot Gets or sets an object that can be used to synchronize access to the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)

Início

Métodos

  Nome Descrição
Método público Add Adds an item to the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido AddShadow Adds the specified object to the shadow collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público Clear Removes all items from the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público Contains(String) Determines whether the specified server group exists in the referenced collection.
Método público Contains(T) Determines whether the collection contains the specified object. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público CopyTo(array<T> [] () [] [], Int32) Copies the elements from the collection to the specified array, starting at the specified array index. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público CopyTo(Array, Int32) Copies the elements from the collection to the specified array, starting at the specified array index. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido CreateAndInitializeChildObject Creates a child object and adds it to the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido EnsureCollectionInitialized Initialize the collection from the server. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método protegido FinishMerge Swaps the new collection for the old collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido GetCollectionElementNameImpl Gets the Uniform Resource Name (URN) suffix for elements in the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido GetElementFactoryImpl Returns the factory that is used to instantiate objects for the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público GetEnumerator Returns an enumerator that can iterate through the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido GetExistingObjectByKey Uses the specified key to retrieve an existing object from the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público GetHashCode (Herdado de Object.)
Método protegido GetObjectByKey Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público GetType (Herdado de Object.)
Método protegido ImplAddExisting Adds an item to the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido ImplRemoveExisting Removes the specified object from the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido InitInnerCollection Creates an empty internal collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido MemberwiseClone (Herdado de Object.)
Método protegido PrepareMerge Prepares to merge fresh query results into the existing collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público Refresh() () () () Refreshes the collection by creating new and merging existing objects and properties in the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público Refresh(Boolean) Refreshes the collection by creating new and merging existing objects and properties in the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público Remove Removes the specified object from the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido RemoveInternal Marks the specified object for removal. The state of the object is set to ToBeDropped. The object will be removed when the parent is altered or dropped. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido Rename Renames the specified object. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método protegido ResetInnerCollection Resets the CultureInfo, IgnoreCase, and Ascending properties on the inner collection to honor the new settings. Call this method after any of the properties have changed. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Método público ToString (Herdado de Object.)

Início

Implementações de interfaces explícitas

  Nome Descrição
Implementações de interfaces explícitasMétodo privado IComparer< (Of < <' (K> ) > > ). . :: . .Compare Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. Compares two keys. (Herdado de SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasPropriedade privada IListSource. . :: . .ContainsListCollection Gets a value indicating whether the collection is a collection of IList objects. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado IEnumerable. . :: . .GetEnumerator Gets an enumerator that can iterate the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado IListSource. . :: . .GetList Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .Add Adds the specified object to the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .AddShadow Adds the specified object to the shadow collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasPropriedade privada ISfcCollection. . :: . .Count Gets the number of items contained in the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .EnsureInitialized Initializes the collection from the server. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .FinishMerge Swaps the new collection for the old collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .GetCollectionElementNameImpl Gets the URN suffix for elements in the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .GetElementFactory Gets the factory that is used to instantiate objects for the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .GetExisting Uses the specified key to retrieve an existing item from the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .GetObjectByKey Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasPropriedade privada ISfcCollection. . :: . .Initialized Gets or sets a value indicating whether the collection has been initialized. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasPropriedade privada ISfcCollection. . :: . .Parent Gets the parent object. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .PrepareMerge Prepares to merge fresh query results into the existing collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .Remove Removes the specified object from the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .RemoveElement Removes the specified element from the collection. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Implementações de interfaces explícitasMétodo privado ISfcCollection. . :: . .Rename Renames the specified object. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)

Início

Comentários

A ServerGroupCollection object can be used to gain access to a set of check constraints. You can use the Item()()()() property to return a specific ServerGroup object.

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.