Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Private Sub Add(Of T As SfcInstance) ( _
direction As SfcDependencyDirection, _
targetObjects As IEnumerable(Of T), _
relation As SfcTypeRelation, _
discovered As Boolean _
) Implements ISfcDependencyDiscoveryObjectSink.Add
'Usage
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 does not support generic types and methods.
Type Parameters
- T
The type of the objects to be added, constrained to SfcInstance type.
Parameters
- direction
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcDependencyDirection
The direction of the relation of the target objects with this object.
- targetObjects
Type: System.Collections.Generic.IEnumerable<T>
The enumeration of objects to be added.
- relation
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcTypeRelation
The type of relation between this object and the target objects.
- discovered
Type: System.Boolean
true to indicate whether the target object has been visited for discovery purposes; otherwise, false.