Bagikan melalui


IDTSObjectReferenceTracker100.AddReference Method

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

Adds a reference to a list for reference tracking.

Namespace:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (in Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntax

'Declaration
Sub AddReference ( _
    ObjectNameOrID As String, _
    RefType As DTSObjectReferenceType, _
    <OutAttribute> ByRef RefListID As Integer _
)
'Usage
Dim instance As IDTSObjectReferenceTracker100 
Dim ObjectNameOrID As String 
Dim RefType As DTSObjectReferenceType 
Dim RefListID As Integer

instance.AddReference(ObjectNameOrID, _
    RefType, RefListID)
void AddReference(
    string ObjectNameOrID,
    DTSObjectReferenceType RefType,
    out int RefListID
)
void AddReference(
    [InAttribute] String^ ObjectNameOrID, 
    [InAttribute] DTSObjectReferenceType RefType, 
    [InAttribute] [OutAttribute] int% RefListID
)
abstract AddReference : 
        ObjectNameOrID:string * 
        RefType:DTSObjectReferenceType * 
        RefListID:int byref -> unit
function AddReference(
    ObjectNameOrID : String, 
    RefType : DTSObjectReferenceType, 
    RefListID : int
)

Parameters

  • ObjectNameOrID
    Type: System.String
    The object name or ID of the object that owns the list.
  • RefListID
    Type: System.Int32%
    The identifier of the reference list.

See Also

Reference

IDTSObjectReferenceTracker100 Interface

Microsoft.SqlServer.Dts.Runtime.Wrapper Namespace