DependencyCollection 类
The DependencyCollection class represents a collection of Dependency objects that are used to derive the node classes in SMO scripting operations.
继承层次结构
System.Object
Microsoft.SqlServer.Management.Smo.DependencyCollection
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Class DependencyCollection _
Implements IList(Of DependencyCollectionNode), ICollection(Of DependencyCollectionNode), _
IEnumerable(Of DependencyCollectionNode), IEnumerable
用法
Dim instance As DependencyCollection
public class DependencyCollection : IList<DependencyCollectionNode>,
ICollection<DependencyCollectionNode>, IEnumerable<DependencyCollectionNode>, IEnumerable
public ref class DependencyCollection : IList<DependencyCollectionNode^>,
ICollection<DependencyCollectionNode^>, IEnumerable<DependencyCollectionNode^>, IEnumerable
type DependencyCollection =
class
interface IList<DependencyCollectionNode>
interface ICollection<DependencyCollectionNode>
interface IEnumerable<DependencyCollectionNode>
interface IEnumerable
end
public class DependencyCollection implements IList<DependencyCollectionNode>, ICollection<DependencyCollectionNode>, IEnumerable<DependencyCollectionNode>, IEnumerable
DependencyCollection 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
DependencyCollection | Initializes a new instance of the DependencyCollection class. |
页首
属性
名称 | 说明 | |
---|---|---|
Count | Gets the number of DependencyCollectionNode objects in the DependencyCollection object. | |
Item | Gets a DependencyCollectionNode object in the collection by index number. |
页首
方法
名称 | 说明 | |
---|---|---|
Add | Adds a Dependency object to the DependencyCollection object. | |
AddRange | Adds a range of nodes to the collection. | |
Clear | Removes all the DependencyCollectionNode objects from the referenced DependencyCollection object. | |
Contains | Determines whether the specified DependencyCollectionNode object is a member of the DependencyCollection object. | |
ContainsUrn | Determines whether the specified Urn object exists on the specified server. | |
CopyTo | Copies the collection objects to a one-dimensional array beginning at the index value specified. | |
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetEnumerator | Gets an enumerator that can iterate through the list of objects. | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
IndexOf | Returns the index value of the DependencyCollectionNode object within the DependencyCollection object. | |
Insert | Inserts a DependencyCollectionNode object at the specified index position in the DependencyCollection object. | |
MemberwiseClone | (从 Object 继承。) | |
Remove | Removes a DependencyCollectionNode object from the DependencyCollection object. | |
RemoveAt | Removes a DependencyCollectionNode object from the DependencyCollection object and the specified index position. | |
ToString | (从 Object 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
IEnumerable.GetEnumerator | Returns an IEnumerator interface that is required to iterate through a collection. | |
ICollection<DependencyCollectionNode>.IsReadOnly | Determines if the dependency collection is read-only. |
页首
注释
A DependencyCollection object can be used to gain access to a set of scripting dependencies. You can use the Item property to return a specific Dependency object.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。但不保证所有实例成员都是线程安全的。
示例
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。