다음을 통해 공유


LogProviderBase.CanUpdate Method

Determines whether a log provider supports upgrading the package XML to a newer version of the log provider.

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

구문

‘선언
Public Overridable Function CanUpdate ( _
    CreationName As String _
) As Boolean
public virtual bool CanUpdate (
    string CreationName
)
public:
virtual bool CanUpdate (
    String^ CreationName
)
public boolean CanUpdate (
    String CreationName
)
public function CanUpdate (
    CreationName : String
) : boolean

매개 변수

  • CreationName
    The string used to create an instance of the object.

반환 값

true if the log provider specified in the CreationName parameter is able to update its object metadata; otherwise, false. The default is false.

주의

You override this method in your log provider when shipping a newer version of your log provider that is capable of updating the package XML of the log provider. If you return true the runtime engine will call your Update method to update the package XML for your log provider.

For example, you deploy version A of your log provider and store some custom properties in the package XML by overriding the SaveToXml method. At a future date, you ship version B of your log provider that no longer supports this property, and instead has a newer property. When the runtime engine finds that the Version property of the log provider contained in a package is A, but the log provider installed on the computer is B, it calls this method to see if your log provider is capable of updating the package XML. If you return true, the runtime engine calls the Update method, allowing you to update the XML.

스레드 보안

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 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

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