SmoCollectionBase 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public abstract class SmoCollectionBase : Microsoft.SqlServer.Management.Smo.AbstractCollectionBase, System.Collections.ICollection
type SmoCollectionBase = class
inherit AbstractCollectionBase
interface ICollection
interface IEnumerable
Public MustInherit Class SmoCollectionBase
Inherits AbstractCollectionBase
Implements ICollection
- 继承
- 派生
- 实现
字段
| 名称 | 说明 |
|---|---|
| initialized | (继承自 AbstractCollectionBase) |
属性
| 名称 | 说明 |
|---|---|
| Count | |
| IsSynchronized | |
| ParentInstance | (继承自 AbstractCollectionBase) |
| SyncRoot | |
方法
| 名称 | 说明 |
|---|---|
| AddExisting(SqlSmoObject) | (继承自 AbstractCollectionBase) |
| ClearAndInitialize(String, IEnumerable<String>) |
清除旧对象并初始化集合。 与 Refresh()不同,集合中已列出的任何对象都将替换为新版本。 使用此方法可确保集合中的所有对象都具有所需的全部属性集。 |
| GetCollectionElementType() | |
| GetEnumerator() |
确保在使用默认属性初始化集合后返回枚举器 |
| GetItemById(Int32, String) | |
| GetItemById(Int32) | |
| GetObjectByIndex(Int32) | |
| ImplAddExisting(SqlSmoObject) | |
| InitializeChildCollection() |
初始化子集合 |
| InitializeChildCollection(Boolean) |
初始化子集合,可以选择保留所有旧对象 |
| InitInnerCollection() | |
| Refresh() | |
| Refresh(Boolean) | |
| ResetCollection() |
清空集合,但不尝试检索任何数据 |
| ValidateParentObject(SqlSmoObject) | |
显式接口实现
| 名称 | 说明 |
|---|---|
| ICollection.CopyTo(Array, Int32) | |