다음을 통해 공유


SfcDependencyEngine.ISfcDependencyDiscoveryObjectSink.Add 메서드 (SfcDependencyDirection, IEnumerable<T>, SfcTypeRelation, Boolean)

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.

매개 변수

  • discovered
    유형: System.Boolean
    true to indicate whether the target object has been visited for discovery purposes; otherwise, false.

구현

ISfcDependencyDiscoveryObjectSink.Add<T>(SfcDependencyDirection, IEnumerable<T>, SfcTypeRelation, Boolean)

참고 항목

참조

SfcDependencyEngine 클래스

Add 오버로드

Microsoft.SqlServer.Management.Sdk.Sfc 네임스페이스