共用方式為


ObjectReferenceTracker.RemoveReference Method

Removes a reference from an existing list.

命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

語法

'宣告
Public Sub RemoveReference ( _
    objectNameOrID As String, _
    refType As DTSObjectReferenceType, _
    ByRef refListID As Integer _
)
public void RemoveReference (
    string objectNameOrID,
    DTSObjectReferenceType refType,
    ref int refListID
)
public:
void RemoveReference (
    String^ objectNameOrID, 
    DTSObjectReferenceType refType, 
    int% refListID
)
public void RemoveReference (
    String objectNameOrID, 
    DTSObjectReferenceType refType, 
    /** @ref */ int refListID
)
JScript 不支援以傳址方式傳遞值類型的引數。

參數

  • objectNameOrID
    The object name or ID to remove from the tracking list.
  • refType
    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.

備註

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.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

ObjectReferenceTracker Class
ObjectReferenceTracker Members
Microsoft.SqlServer.Dts.Runtime Namespace