Compartir a través de


ObjectReferenceTracker.RemoveReference Método

Removes a reference from an existing list.

Espacio de nombres:  Microsoft.SqlServer.Dts.Runtime
Ensamblado:  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Sintaxis

'Declaración
Public Sub RemoveReference ( _
    objectNameOrID As String, _
    refType As DTSObjectReferenceType, _
    ByRef refListID As Integer _
)
'Uso
Dim instance As ObjectReferenceTracker 
Dim objectNameOrID As String 
Dim refType As DTSObjectReferenceType 
Dim refListID As Integer

instance.RemoveReference(objectNameOrID, _
    refType, refListID)
public void RemoveReference(
    string objectNameOrID,
    DTSObjectReferenceType refType,
    ref int refListID
)
public:
void RemoveReference(
    String^ objectNameOrID, 
    DTSObjectReferenceType refType, 
    int% refListID
)
member RemoveReference : 
        objectNameOrID:string * 
        refType:DTSObjectReferenceType * 
        refListID:int byref -> unit
public function RemoveReference(
    objectNameOrID : String, 
    refType : DTSObjectReferenceType, 
    refListID : int
)

Parámetros

  • objectNameOrID
    Tipo: System.String
    The object name or ID to remove from the tracking list.
  • refListID
    Tipo: System.Int32%
    The list ID in which the object to remove is currently located.

Comentarios

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.

Vea también

Referencia

ObjectReferenceTracker Clase

Espacio de nombres Microsoft.SqlServer.Dts.Runtime