共用方式為


LogProvider 類別

Contains information about a log provider associated with a package. All log providers associated with a package are located in the LogProviders collection. For log providers on the computer, use the Application class and view the LogProviderInfos collection. This class cannot be inherited.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Dts.Runtime. . :: . .DtsObject
    Microsoft.SqlServer.Dts.Runtime..::..LogProvider

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public NotInheritable Class LogProvider _
    Inherits DtsObject _
    Implements IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider,  _
    IComponent, IDisposable, IDTSPackagePath
'用途
Dim instance As LogProvider
public sealed class LogProvider : DtsObject, 
    IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider, IComponent, 
    IDisposable, IDTSPackagePath
public ref class LogProvider sealed : public DtsObject, 
    IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider, IComponent, 
    IDisposable, IDTSPackagePath
[<SealedAttribute>]
type LogProvider =  
    class
        inherit DtsObject
        interface IDTSObjectHost
        interface IDTSName
        interface IDTSPersist
        interface IDTSPropertiesProvider
        interface IComponent
        interface IDisposable
        interface IDTSPackagePath
    end
public final class LogProvider extends DtsObject implements IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider, IComponent, IDisposable, IDTSPackagePath

LogProvider 型別公開下列成員。

屬性

  名稱 說明
公用屬性 ConfigString Gets or sets the connection and configuration information for the specific log provider.
公用屬性 CreationName Returns the string used by the runtime to create an instance of the LogProvider object. This property is read-only.
公用屬性 DelayValidation Gets or sets a Boolean that specifies whether a call to Validate for the log provider is delayed until package execution.
公用屬性 Description Gets or sets the description of the LogProvider object.
公用屬性 HostType Gets an enumeration that describes the type of host that the log provider is being used by. This property is read-only
公用屬性 ID Gets the ID of the LogProvider. This property is read-only.
公用屬性 InnerObject Returns the specific log provider that is being hosted by the LogProvider object.
公用屬性 Name Gets or sets a the name of the LogProvider object, such as "SSIS log provider for Text files". This string is the text that shows in the Configure SSIS Logs (Providers and Logs Tab) dialog box in the Provider type drop-down menu.
公用屬性 Properties Returns a DtsProperties collection, which contains a collection of DtsProperty objects.
公用屬性 Site 基礎結構。

上層

方法

  名稱 說明
公用方法 CloseLog Closes the log.
公用方法 Dispose Releases the resources used by the log provider.
公用方法 Equals Determines whether two object instances are equal. (繼承自 DtsObject。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetExpression Returns a String that contains the expression for the specified property. Null means no expression is assigned.
公用方法 GetHashCode Returns the hash code for this instance. (繼承自 DtsObject。)
公用方法 GetPackagePath Returns a String that contains the relative path to the package location.
公用方法 GetType (繼承自 Object。)
公用方法 LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application..::..LoadPackage method.
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 OpenLog Opens the log.
公用方法 SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application..::..SaveToXml method.
公用方法 SetExpression Assigns the specified expression to the property. Specify nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) to remove an existing expression from the property.
公用方法 ToString (繼承自 Object。)

上層

事件

  名稱 說明
公用事件 Disposed Adds an event handler to listen to the Disposed event on the log provider.

上層

備註

The host log provider is a class that provides the methods and properties that are common to all of the log providers. Regardless of which log provider is in use, this class allows you to perform all tasks associated with logging. The LogProvider class is the object you use when programmatically adding log providers to a package. It is a generic host log provider that hosts an underlying log provider. The hosted log provider is accessible using the InnerObject. If you want to create a custom log provider, use the LogProviderBase class.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。