共用方式為


ServerAliasCollection Members

The ServerAliasCollection class represents a collection of ServerAlias objects that represent all the Microsoft SQL Server aliases defined on the parent object.

The following tables list the members exposed by the ServerAliasCollection type.

Protected Fields

  名稱 Description
ms220813.protfield(zh-tw,SQL.90).gif initialized  (inherited from WmiCollectionBase )
ms220813.protfield(zh-tw,SQL.90).gif innerColl  (inherited from WmiCollectionBase )

頂端

Public Properties

  名稱 Description
ms220813.pubproperty(zh-tw,SQL.90).gif Count Gets the number of ServerAlias objects in the referenced collection.
ms220813.pubproperty(zh-tw,SQL.90).gif IsSynchronized  Gets the Boolean property value that specifies whether access to the collection is synchronized (thread safe). (inherited from WmiCollectionBase)
ms220813.pubproperty(zh-tw,SQL.90).gif Item Overloaded. Gets a ServerAlias object in the collection by name or by index number.
ms220813.pubproperty(zh-tw,SQL.90).gif Parent Gets the ManagedComputer object that is the parent of the ServerAliasCollection object.
ms220813.pubproperty(zh-tw,SQL.90).gif SyncRoot  Gets an object that can be used to synchronize access to the collection. (inherited from WmiCollectionBase)

頂端

Public Methods

(see also Protected Methods )

  名稱 Description
ms220813.pubmethod(zh-tw,SQL.90).gif Contains Checks whether the specified key value exists in the collection.
ms220813.pubmethod(zh-tw,SQL.90).gif CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.
ms220813.pubmethod(zh-tw,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms220813.pubmethod(zh-tw,SQL.90).gif GetEnumerator Returns an IEnumerator interface that allows you to iterate through the objects in the collection.
ms220813.pubmethod(zh-tw,SQL.90).gif GetHashCode  (inherited from Object )
ms220813.pubmethod(zh-tw,SQL.90).gif GetType  (inherited from Object )
ms220813.pubmethod(zh-tw,SQL.90).gifms220813.static(zh-tw,SQL.90).gif ReferenceEquals  (inherited from Object )
ms220813.pubmethod(zh-tw,SQL.90).gif ToString  (inherited from Object )

頂端

Protected Methods

  名稱 Description
ms220813.protmethod(zh-tw,SQL.90).gif Add  (inherited from WmiCollectionBase )
ms220813.protmethod(zh-tw,SQL.90).gif Finalize  (inherited from Object )
ms220813.protmethod(zh-tw,SQL.90).gif MemberwiseClone  (inherited from Object )
ms220813.protmethod(zh-tw,SQL.90).gif Remove  (inherited from WmiCollectionBase )

頂端

Explicit Interface Implementations

  名稱 Description
System.Collections.ICollection.CopyTo  

頂端

請參閱

參考

ServerAliasCollection Class
Microsoft.SqlServer.Management.Smo.Wmi Namespace

其他資源

Using Collections