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
公共方法 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 继承。)

页首

注释

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 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。