Classe RegisteredServerCollection
The RegisteredServerCollection class represents a collection of RegisteredServer objects that represent all the registered servers that are defined on the parent object.
Hierarquia de herança
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<RegisteredServer, RegisteredServer.Key, ServerGroup>
Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<RegisteredServer, RegisteredServer.Key, ServerGroup>
Microsoft.SqlServer.Management.RegisteredServers.RegisteredServerCollection
Namespace: Microsoft.SqlServer.Management.RegisteredServers
Assembly: Microsoft.SqlServer.Management.RegisteredServers (em Microsoft.SqlServer.Management.RegisteredServers.dll)
Sintaxe
'Declaração
Public NotInheritable Class RegisteredServerCollection _
Inherits SfcCollatedDictionaryCollection(Of RegisteredServer, RegisteredServer.Key, ServerGroup)
'Uso
Dim instance As RegisteredServerCollection
public sealed class RegisteredServerCollection : SfcCollatedDictionaryCollection<RegisteredServer, RegisteredServer.Key, ServerGroup>
public ref class RegisteredServerCollection sealed : public SfcCollatedDictionaryCollection<RegisteredServer^, RegisteredServer.Key^, ServerGroup^>
[<SealedAttribute>]
type RegisteredServerCollection =
class
inherit SfcCollatedDictionaryCollection<RegisteredServer, RegisteredServer.Key, ServerGroup>
end
public final class RegisteredServerCollection extends SfcCollatedDictionaryCollection<RegisteredServer, RegisteredServer.Key, ServerGroup>
O tipo RegisteredServerCollection expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
RegisteredServerCollection | Initializes a new instance of the RegisteredServerCollection class based on the specified parent object and the specified comparison interface. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
Item[String] | Gets a RegisteredServer object in the collection by name. | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) |
Início
Métodos
Nome | Descrição | |
---|---|---|
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
Contains(String) | Determines whether the specified registered server exists in the referenced collection. | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
Equals | (Herdado de Object.) | |
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<T, K, ParentT>.) | |
GetHashCode | (Herdado de Object.) | |
GetType | (Herdado de Object.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
Rename | Renames the specified object. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SfcCollection<T, K, ParentT>.) | |
ToString | (Herdado de Object.) | |
TryGetValue | Gets the value associated with the specified key. (Herdado de SfcCollatedDictionaryCollection<T, K, ParentT>.) |
Início
Implementações de interfaces explícitas
Nome | Descrição | |
---|---|---|
IComparer<K>.Compare | Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. Compares two keys. (Herdado de SfcCollatedDictionaryCollection<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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 (Herdado de SfcCollection<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) | |
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<T, K, ParentT>.) |
Início
Comentários
A RegisteredServerCollection object can be used to gain access to a set of check constraints. You can use the Item property to return a specific RegisteredServer object.
Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.
Exemplos
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.