Compartir a través de


Clase 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.

Jerarquía de herencia

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

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

Sintaxis

'Declaración
Public NotInheritable Class LogProvider _
    Inherits DtsObject _
    Implements IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider,  _
    IDTSPropertiesProviderEx, IComponent, IDisposable, IDTSPackagePath, IDTSExecutionPath
'Uso
Dim instance As LogProvider
public sealed class LogProvider : DtsObject, 
    IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider, IDTSPropertiesProviderEx, 
    IComponent, IDisposable, IDTSPackagePath, IDTSExecutionPath
public ref class LogProvider sealed : public DtsObject, 
    IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider, IDTSPropertiesProviderEx, 
    IComponent, IDisposable, IDTSPackagePath, IDTSExecutionPath
[<SealedAttribute>]
type LogProvider =  
    class 
        inherit DtsObject 
        interface IDTSObjectHost 
        interface IDTSName 
        interface IDTSPersist 
        interface IDTSPropertiesProvider 
        interface IDTSPropertiesProviderEx 
        interface IComponent 
        interface IDisposable 
        interface IDTSPackagePath 
        interface IDTSExecutionPath 
    end
public final class LogProvider extends DtsObject implements IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider, IDTSPropertiesProviderEx, IComponent, IDisposable, IDTSPackagePath, IDTSExecutionPath

El tipo LogProvider expone los siguientes miembros.

Propiedades

  Nombre Descripción
Propiedad pública ConfigString Gets or sets the connection and configuration information for the specific log provider.
Propiedad pública CreationName Returns the string used by the runtime to create an instance of the LogProvider object. This property is read-only.
Propiedad pública DelayValidation Gets or sets a Boolean that specifies whether a call to Validate for the log provider is delayed until package execution.
Propiedad pública Description Gets or sets the description of the LogProvider object.
Propiedad pública HasExpressions Gets or sets a value that indicates whether the log provider has expressions.
Propiedad pública HostType Gets an enumeration that describes the type of host that the log provider is being used by. This property is read-only
Propiedad pública ID Gets the ID of the LogProvider. This property is read-only.
Propiedad pública InnerObject Returns the specific log provider that is being hosted by the LogProvider object.
Propiedad pública 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.
Propiedad pública Properties Returns a DtsProperties collection, which contains a collection of DtsProperty objects.
Propiedad pública Site Infraestructura. Gets or sets the site for the log provider.

Arriba

Métodos

  Nombre Descripción
Método público CloseLog Closes the log.
Método público Dispose Releases the resources used by the log provider.
Método público Equals Determines whether two object instances are equal. (Se hereda de DtsObject.)
Método público GetExecutionPath Returns a String that contains the execution path of the log provider.
Método público GetExpression Returns a String that contains the expression for the specified property. Null means no expression is assigned.
Método público GetHashCode Returns the hash code for this instance. (Se hereda de DtsObject.)
Método público GetPackagePath Returns a String that contains the relative path to the package location.
Método público GetType (Se hereda de Object.)
Método público LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
Método público OpenLog Opens the log.
Método público SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
Método público SetExpression Assigns the specified expression to the property. Specify nulles una referencia NULL (Nothing en Visual Basic). to remove an existing expression from the property.
Método público ToString (Se hereda de Object.)

Arriba

Eventos

  Nombre Descripción
Evento público Disposed Adds an event handler to listen to the Disposed event on the log provider.

Arriba

Comentarios

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.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Dts.Runtime