Udostępnij przez


Metoda SfcDependencyEngine.Add (SfcInstance, SfcInstance, SfcTypeRelation)

Dodaje nową relację spójna kolekcja nadrzędnym węźle i jego węzeł podrzędność, który zależy od niej.Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw:  Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Składnia

'Deklaracja
Public Sub Add ( _
    objParent As SfcInstance, _
    objChild As SfcInstance, _
    relation As SfcTypeRelation _
)
'Użycie
Dim instance As SfcDependencyEngine
Dim objParent As SfcInstance
Dim objChild As SfcInstance
Dim relation As SfcTypeRelation

instance.Add(objParent, objChild, relation)
public void Add(
    SfcInstance objParent,
    SfcInstance objChild,
    SfcTypeRelation relation
)
public:
void Add(
    SfcInstance^ objParent, 
    SfcInstance^ objChild, 
    SfcTypeRelation relation
)
member Add : 
        objParent:SfcInstance * 
        objChild:SfcInstance * 
        relation:SfcTypeRelation -> unit 
public function Add(
    objParent : SfcInstance, 
    objChild : SfcInstance, 
    relation : SfcTypeRelation
)

Parametry