Adds a directional reference from this object to each of the target objects or keychains with the relation type and discovered state applied to each target object or keychain. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Private Sub Add ( _
direction As SfcDependencyDirection, _
targetObjects As IEnumerator, _
relation As SfcTypeRelation, _
discovered As Boolean _
) Implements ISfcDependencyDiscoveryObjectSink.Add
用法
Dim instance As SfcDependencyEngine
Dim direction As SfcDependencyDirection
Dim targetObjects As IEnumerator
Dim relation As SfcTypeRelation
Dim discovered As Boolean
CType(instance, ISfcDependencyDiscoveryObjectSink).Add(direction, _
targetObjects, relation, discovered)
void ISfcDependencyDiscoveryObjectSink.Add(
SfcDependencyDirection direction,
IEnumerator targetObjects,
SfcTypeRelation relation,
bool discovered
)
private:
virtual void Add(
SfcDependencyDirection direction,
IEnumerator^ targetObjects,
SfcTypeRelation relation,
bool discovered
) sealed = ISfcDependencyDiscoveryObjectSink::Add
private abstract Add :
direction:SfcDependencyDirection *
targetObjects:IEnumerator *
relation:SfcTypeRelation *
discovered:bool -> unit
private override Add :
direction:SfcDependencyDirection *
targetObjects:IEnumerator *
relation:SfcTypeRelation *
discovered:bool -> unit
JScript 支持使用显式接口实现,但不支持声明新显式接口实现。
参数
- direction
类型:Microsoft.SqlServer.Management.Sdk.Sfc.SfcDependencyDirection
The direction of the relation of the target objects with this object.
- targetObjects
类型:System.Collections.IEnumerator
The enumeration of objects to be added.
- relation
类型:Microsoft.SqlServer.Management.Sdk.Sfc.SfcTypeRelation
The type of relation between this object and the target objects.
- discovered
类型:System.Boolean
true to indicate whether the target object has been visited for discovery purposes; otherwise, false.
实现
ISfcDependencyDiscoveryObjectSink.Add(SfcDependencyDirection, IEnumerator, SfcTypeRelation, Boolean)