Share via


UrnCollection 類別

The UrnCollection class represents a collection of Urn objects that represent Uniform Resource Name (URN) addresses.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..UrnCollection

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Class UrnCollection _
    Implements IList(Of Urn), ICollection(Of Urn),  _
    IEnumerable(Of Urn), IEnumerable
'用途
Dim instance As UrnCollection
public class UrnCollection : IList<Urn>, 
    ICollection<Urn>, IEnumerable<Urn>, IEnumerable
public ref class UrnCollection : IList<Urn^>, 
    ICollection<Urn^>, IEnumerable<Urn^>, IEnumerable
type UrnCollection =  
    class
        interface IList<Urn>
        interface ICollection<Urn>
        interface IEnumerable<Urn>
        interface IEnumerable
    end
public class UrnCollection implements IList<Urn>, ICollection<Urn>, IEnumerable<Urn>, IEnumerable

UrnCollection 型別公開下列成員。

建構函式

  名稱 說明
公用方法 UrnCollection Initializes a new instance of the UrnCollection class.

上層

屬性

  名稱 說明
公用屬性 Count Gets the number of Urns in a Urn Collection.
公用屬性 Item Gets a Urn object in the collection by index number.

上層

方法

  名稱 說明
公用方法 Add Adds a URN to a URN collection.
公用方法 AddRange Adds the elements of the specified collection to the end of the list.
公用方法 Clear Removes all elements from the collection.
公用方法 Contains Specifies if a URN collection contains a URN.
公用方法 CopyTo Copies members of the collection to an array, starting at the specified index of the array.
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetEnumerator Returns a generic IEnumerator interface.
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 IndexOf Gets the index of a specified URN from a collection.
公用方法 Insert Inserts a URN at a specified index of a URN collection.
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 Remove Removes a specified URN from a collection.
公用方法 RemoveAt Removes a URN from a collection based on the index of the URN.
公用方法 ToString (繼承自 Object。)

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用方法 IEnumerable. . :: . .GetEnumerator Gets a non-generic enumerator.
明確介面實作私用屬性 ICollection< (Of < <' (Urn> ) > > ). . :: . .IsReadOnly Gets a Boolean indicating whether the collection is read-only.

上層

備註

A UrnCollection object can be used to gain access to a set of URN addresses. You can use the Item property to return a specific Urn object.

Thread Safety

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。