FederationCollection 类

定义

表示联合对象的集合。

public ref class FederationCollection sealed : Microsoft::SqlServer::Management::Smo::SimpleObjectCollectionBase
public sealed class FederationCollection : Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase
type FederationCollection = class
    inherit SimpleObjectCollectionBase
Public NotInheritable Class FederationCollection
Inherits SimpleObjectCollectionBase
继承

字段

initialized

此值支持 SMO 基础结构,但不能通过代码直接使用。

(继承自 AbstractCollectionBase)

属性

Count

获取所引用集合中的对象数。

(继承自 SmoCollectionBase)
IsSynchronized

获取 Boolean 属性值,该值指定是否同步对集合的访问并因此确保线程安全。

(继承自 SmoCollectionBase)
Item[Int32]

返回集合中指定索引处的联合对象。

Item[String]

返回集合中具有指定名称的联合对象。

Parent

获取联合集合的父数据库。

SyncRoot

获取可用于同步对集合的访问的对象。

(继承自 SmoCollectionBase)

方法

Add(Federation)

将指定的联合添加到集合的末尾。

AddExisting(SqlSmoObject)

将对象添加到集合。

(继承自 AbstractCollectionBase)
AddImpl(SqlSmoObject)

将指定的对象添加到此集合中

(继承自 SortedListCollectionBase)
Contains(String)

验证集合中是否存在指定的对象。

(继承自 SimpleObjectCollectionBase)
CopyTo(Federation[], Int32)

从指定索引处开始,将集合中的元素复制到一个数组。

GetCollectionElementType()

获取集合元素类型。

(继承自 SmoCollectionBase)
GetEnumerator()

返回一个 IEnumerator 接口,通过它可以遍历集合中的对象。

(继承自 SmoCollectionBase)
GetItemById(Int32)

通过使用系统定义的唯一标识符,从引用的集合中提取一个成员。

(继承自 SmoCollectionBase)
GetItemById(Int32, String)

通过使用系统定义的唯一标识符和名称,从引用的集合中提取一个成员。

(继承自 SmoCollectionBase)
GetObjectByIndex(Int32)

通过使用系统定义的唯一标识符,从引用的集合中提取一个成员。

(继承自 SmoCollectionBase)
ImplAddExisting(SqlSmoObject)

将现有的指定对象添加到此集合中

(继承自 SortedListCollectionBase)
InitializeChildCollection()

初始化引用的集合的子集合。

(继承自 SmoCollectionBase)
InitializeChildCollection(Boolean)

使用用于刷新引用的集合的属性的选项,初始化引用的集合的子集合。

(继承自 SmoCollectionBase)
InitInnerCollection()

初始化集合。

(继承自 SimpleObjectCollectionBase)
ItemById(Int32)

使用指定的标识符返回联合对象。

Refresh()

刷新引用的集合。

(继承自 SmoCollectionBase)
Refresh(Boolean)

使用用于刷新引用的集合的子对象的选项,刷新引用的集合。

(继承自 SmoCollectionBase)
ValidateParentObject(SqlSmoObject)

验证父对象是否存在。

(继承自 SmoCollectionBase)

显式接口实现

ICollection.CopyTo(Array, Int32)

将元素从实例复制到某个数组,从指示的索引处开始复制。

(继承自 SmoCollectionBase)

适用于