ObjectReferenceTracker.RemoveReference(String, DTSObjectReferenceType, Int32) ObjectReferenceTracker.RemoveReference(String, DTSObjectReferenceType, Int32) ObjectReferenceTracker.RemoveReference(String, DTSObjectReferenceType, Int32) Method

Definition

Removes a reference from an existing list.

public:
 void RemoveReference(System::String ^ objectNameOrID, Microsoft::SqlServer::Dts::Runtime::DTSObjectReferenceType refType, int % refListID);
public void RemoveReference (string objectNameOrID, Microsoft.SqlServer.Dts.Runtime.DTSObjectReferenceType refType, ref int refListID);
Public Sub RemoveReference (objectNameOrID As String, refType As DTSObjectReferenceType, ByRef refListID As Integer)

Parameters

objectNameOrID
String String String

The object name or ID to remove from the tracking list.

refType
DTSObjectReferenceType DTSObjectReferenceType DTSObjectReferenceType

The type of reference you want to track. The valid values are found in the DTSObjectReferenceType enumeration.

refListID

The list ID in which the object to remove is currently located.

Remarks

Use this method to remove a reference from an existing list when that object is no longer being used or has been destroyed.

The refListID parameter is created when the list is newly generated using the AddReference method. The AddReference method returns to you a refListID, and it contains the ID of the newly created list. This returned refListID can be used in subsequent calls to add more references to the same list, remove references to the list, destroy a list, or when using the SetListInfo method.

Applies to