Partager via


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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Dts.Runtime
Assembly :  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Syntaxe

'Déclaration
Public NotInheritable Class LogProvider _
    Inherits DtsObject _
    Implements IDTSObjectHost, IDTSName, IDTSPersist, IDTSPropertiesProvider,  _
    IComponent, IDisposable, IDTSPackagePath
'Utilisation
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

Le type LogProvider expose les membres suivants.

Propriétés

  Nom Description
Propriété publique ConfigString Gets or sets the connection and configuration information for the specific log provider.
Propriété publique CreationName Returns the string used by the runtime to create an instance of the LogProvider object. This property is read-only.
Propriété publique DelayValidation Gets or sets a Boolean that specifies whether a call to Validate for the log provider is delayed until package execution.
Propriété publique Description Gets or sets the description of the LogProvider object.
Propriété publique HostType Gets an enumeration that describes the type of host that the log provider is being used by. This property is read-only
Propriété publique ID Gets the ID of the LogProvider. This property is read-only.
Propriété publique InnerObject Returns the specific log provider that is being hosted by the LogProvider object.
Propriété publique 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.
Propriété publique Properties Returns a DtsProperties collection, which contains a collection of DtsProperty objects.
Propriété publique Site Infrastructure.

Haut de la page

Méthodes

  Nom Description
Méthode publique CloseLog Closes the log.
Méthode publique Dispose Releases the resources used by the log provider.
Méthode publique Equals Determines whether two object instances are equal. (hérité de DtsObject.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetExpression Returns a String that contains the expression for the specified property. Null means no expression is assigned.
Méthode publique GetHashCode Returns the hash code for this instance. (hérité de DtsObject.)
Méthode publique GetPackagePath Returns a String that contains the relative path to the package location.
Méthode publique GetType (hérité de Object.)
Méthode publique LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application..::..LoadPackage method.
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique OpenLog Opens the log.
Méthode publique SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application..::..SaveToXml method.
Méthode publique SetExpression Assigns the specified expression to the property. Specify nullNothingnullptrunitune référence Null (Nothing dans Visual Basic) to remove an existing expression from the property.
Méthode publique ToString (hérité de Object.)

Haut de la page

Événements

  Nom Description
Événement public Disposed Adds an event handler to listen to the Disposed event on the log provider.

Haut de la page

Notes

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.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.