다음을 통해 공유


ObjectReferenceTracker 클래스

Provides analysis regarding the impact and consequences of deleting variables and connections from a package. This class cannot be inherited.

상속 계층

System.Object
  Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.ObjectReferenceTracker

네임스페이스:  Microsoft.SqlServer.Dts.Runtime
어셈블리:  Microsoft.SqlServer.ManagedDTS(Microsoft.SqlServer.ManagedDTS.dll)

구문

‘선언
Public NotInheritable Class ObjectReferenceTracker _
    Inherits DtsObject
‘사용 방법
Dim instance As ObjectReferenceTracker
public sealed class ObjectReferenceTracker : DtsObject
public ref class ObjectReferenceTracker sealed : public DtsObject
[<SealedAttribute>]
type ObjectReferenceTracker =  
    class 
        inherit DtsObject 
    end
public final class ObjectReferenceTracker extends DtsObject

ObjectReferenceTracker 유형에서 다음 멤버를 표시합니다.

메서드

  이름 설명
공용 메서드 AddReference This method adds a reference to a list for reference tracking.
공용 메서드 DestroyList This method destroys the specified reference list from reference tracking.
공용 메서드 Equals Determines whether two object instances are equal. (DtsObject에서 상속됨)
공용 메서드 GetHashCode Returns the hash code for this instance. (DtsObject에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 RemoveReference Removes a reference from an existing list.
공용 메서드 SetListInfo This method allows you to provide metadata for an existing reference list.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

주의

The ObjectReferenceTracker is a mechanism for viewing impact analysis. You register the objects that your components are using and where they are found. If another user or component attempts to delete an object, the system can provide information allowing you to verify that the object is not in use elsewhere, and if it is used elsewhere, display the information to you. When you add or delete a reference to a variable from a component or package, you have to update the lists of variable reference.

Currently, the types of objects supported by the reference tracker are listed in the DTSObjectReferenceType enumeration.

A runtime task or pipeline component that uses variables or collections uses the AddReference method to create a reference list of objects. You also need to provide a usage location and description for the list by calling SetListInfo. For example, a task with a single variable would use its name as the location information, and a description of what the variable is used for as the usage description.

Tasks or components that make different uses of variables or connections may create as many separate reference lists as necessary. For example, the Conditional Split component uses variables in expressions on outputs, and you can create a separate reference list for each output expression that uses variables. You set the component name as the usage location and include the expression and where it is found in the description. If the same variable is used in multiple expressions, each usage location will be tracked by the system.

There are separate DTSObjectReferenceType enumerations for read-only variables and read/write variables. Using this specification, in conjunction with variable locking with the VariableDispenser class, can provide information that is useful when resolving deadlock issues.

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Dts.Runtime 네임스페이스