Export (0) Print
Expand All

ComputerCollection Class

 

Applies To: SQL Server 2016 Preview

The ComputerCollection class represents a collection of Computer objects that represent all the computers managed in the Utility domain.

Namespace:   Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)


[DefaultMemberAttribute("Item")]
public sealed class ComputerCollection : SfcCollatedDictionaryCollection<Computer, Computer.Key, Utility>

NameDescription
System_CAPS_pubmethodComputerCollection(Utility)

Initializes a new instance of the ComputerCollection class on the specified Utility domain.

System_CAPS_pubmethodComputerCollection(Utility, IComparer<String>)

Initializes a new instance of the T:Microsoft.SqlServer.Management.Utility.CollectionCollection class on the specified Utility domain and with the specified comparer interface.

NameDescription
System_CAPS_pubpropertyAscending

Gets or sets a value indicating whether to sort in ascending order. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_pubpropertyCount

Gets the number of elements contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_protpropertyInitialized

Gets a value indicating whether the collection has been initialized. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the collection is read-only. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_pubpropertyIsSynchronized

Gets or sets a value indicating whether access to the collection is synchronized (thread safe). Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubpropertyItem[K]

Gets the item specified by the key. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubpropertyItem[String]

Returns the object with the specified name in the collection

System_CAPS_protpropertyParent

Gets or sets the type of the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubpropertySyncRoot

Gets or sets an object that can be used to synchronize access to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

NameDescription
System_CAPS_pubmethodAdd(T)

Adds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubmethodClear()

Removes all items from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_pubmethodContains(T)

Determines whether the collection contains the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_pubmethodContains(T)

Determines whether the collection contains the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_pubmethodContains(String)

Determines whether the referenced collection contains the specified string.

System_CAPS_pubmethodCopyTo(T[], Int32)

Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_pubmethodCopyTo(Array, Int32)

Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that can iterate through the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRefresh()

Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubmethodRefresh(Boolean)

Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubmethodRemove(T)

Removes the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

System_CAPS_protmethodRemoveInternal(T)

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. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_protmethodRename(T, K)

Renames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetValue(K, T)

Gets the value associated with the specified key.(Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.Add(SfcInstance)

Adds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.AddShadow(SfcInstance)

Adds the specified object to the shadow collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.EnsureInitialized()

Initializes the collection from the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.FinishMerge()

Swaps the new collection for the old collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.GetCollectionElementNameImpl()

Gets the URN suffix for elements in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.GetElementFactory()

Gets the factory that is used to instantiate objects for the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.GetExisting(SfcKey, SfcInstance)

Uses the specified key to retrieve an existing item from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.GetObjectByKey(SfcKey)

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.

Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.PrepareMerge()

Prepares to merge fresh query results into the existing collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.Remove(SfcInstance)

Removes the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.RemoveElement(SfcInstance)

Removes the specified element from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodISfcCollection.Rename(SfcInstance, SfcKey)

Renames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIComparer<K>.Compare(K, K)
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Gets an enumerator that can iterate the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIListSource.GetList()

Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Inherited from SfcCollection<T, K, ParentT>.)

A T:Microsoft.SqlServer.Management.Smo.ComputerCollection object can be used to gain access to a set of computers. The T:Microsoft.SqlServer.Management.Smo.Computer object represents a computer and its resources in the Utility domain.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft