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.
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Private Sub Add(Of T As SfcInstance) ( _
direction As SfcDependencyDirection, _
targetObjects As IEnumerable(Of T), _
relation As SfcTypeRelation, _
discovered As Boolean _
) Implements ISfcDependencyDiscoveryObjectSink.Add
用法
Dim instance As SfcDependencyEngine
Dim direction As SfcDependencyDirection
Dim targetObjects As IEnumerable(Of T)
Dim relation As SfcTypeRelation
Dim discovered As Boolean
CType(instance, ISfcDependencyDiscoveryObjectSink).Add(direction, _
targetObjects, relation, discovered)
void ISfcDependencyDiscoveryObjectSink.Add<T>(
SfcDependencyDirection direction,
IEnumerable<T> targetObjects,
SfcTypeRelation relation,
bool discovered
)
where T : SfcInstance
private:
generic<typename T>
where T : SfcInstance
virtual void Add(
SfcDependencyDirection direction,
IEnumerable<T>^ targetObjects,
SfcTypeRelation relation,
bool discovered
) sealed = ISfcDependencyDiscoveryObjectSink::Add
private abstract Add :
direction:SfcDependencyDirection *
targetObjects:IEnumerable<'T> *
relation:SfcTypeRelation *
discovered:bool -> unit when 'T : SfcInstance
private override Add :
direction:SfcDependencyDirection *
targetObjects:IEnumerable<'T> *
relation:SfcTypeRelation *
discovered:bool -> unit when 'T : SfcInstance
JScript 不支持一般类型和方法。
类型参数
- T
The type of the objects to be added, constrained to SfcInstance type.
参数
- direction
类型:Microsoft.SqlServer.Management.Sdk.Sfc.SfcDependencyDirection
The direction of the relation of the target objects with this object.
- targetObjects
类型:System.Collections.Generic.IEnumerable<T>
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.