Partager via


Classe Project

Represents Integration Services project which contains packages and parameters.

Hiérarchie d'héritage

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

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

Syntaxe

'Déclaration
<ComVisibleAttribute(True)> _
Public NotInheritable Class Project _
    Inherits DtsObject _
    Implements IComponent, IDisposable
'Utilisation
Dim instance As Project
[ComVisibleAttribute(true)]
public sealed class Project : DtsObject, 
    IComponent, IDisposable
[ComVisibleAttribute(true)]
public ref class Project sealed : public DtsObject, 
    IComponent, IDisposable
[<SealedAttribute>]
[<ComVisibleAttribute(true)>]
type Project =  
    class 
        inherit DtsObject 
        interface IComponent 
        interface IDisposable 
    end
public final class Project extends DtsObject implements IComponent, IDisposable

Le type Project expose les membres suivants.

Propriétés

  Nom Description
Propriété publique ConnectionManagerItems Gets the connection manager items of the project. The connection managers are shared across all packages.
Propriété publique CreationDate Gets or sets the date and time that the project was created.
Propriété publique CreatorComputerName Gets or sets the name of the computer on which the project was created.
Propriété publique CreatorName Gets or sets the name of the individual who created the project.
Propriété publique Description Gets or sets the description of the Project object.
Propriété publique Events Sets the IDTSEvents interface to get various events.
Propriété publique FormatVersion Gets the format version of the project.
Propriété publique ID Gets the project ID, which is GUID.
Propriété publique Name Gets or sets the name of the project.
Propriété publique OfflineMode Gets or sets a value that indicates whether the project is on offline mode.
Propriété publique PackageItems Gets the collection of the package items for the project.
Propriété publique Parameters Gets the collection of the project parameters.
Propriété publique Password Sets the password used to encrypt or decrypt project and packages.
Propriété publique ProtectionLevel Gets or sets the level of protection on the project.
Propriété publique Site Gets or sets the ISite associated with the parameter object.
Propriété publique VersionBuild Gets or sets the build version of the project.
Propriété publique VersionComments Gets or sets the comments associated with the project.
Propriété publique VersionMajor Gets or sets the major build version of the project.
Propriété publique VersionMinor Gets or sets the minor build version of the project.

Haut de la page

Méthodes

  Nom Description
Méthode publiqueMembre statique CreateProject() Creates a new Integration Services project.
Méthode publiqueMembre statique CreateProject(Stream) Creates a new project on a given I/O stream.
Méthode publiqueMembre statique CreateProject(String) Creates a new project in the specified file.
Méthode publique Dispose Releases all resources used by the current instance of the Project class.
Méthode publique Equals Determines whether two object instances are equal. (hérité de DtsObject.)
Méthode publique GetHashCode Returns the hash code for this instance. (hérité de DtsObject.)
Méthode publique GetType (hérité de Object.)
Méthode publiqueMembre statique OpenProject(Stream) Opens a project from an I/O stream.
Méthode publiqueMembre statique OpenProject(String) Opens an existing project in the specified file.
Méthode publiqueMembre statique OpenProject(Stream, IDTSEvents) Opens a project from an I/O stream and specifies an event listener to receive events.
Méthode publiqueMembre statique OpenProject(Stream, String) Opens a password protected project from an I/O stream.
Méthode publiqueMembre statique OpenProject(String, IDTSEvents) Opens an existing project in the specified file.
Méthode publiqueMembre statique OpenProject(String, String) Opens an existing project with password in the specified file.
Méthode publiqueMembre statique OpenProject(Stream, String, IDTSEvents) Opens a password protected project from an I/O stream and specifies an event listener to receive events.
Méthode publiqueMembre statique OpenProject(String, String, IDTSEvents) Opens an existing project in the specified file.
Méthode publiqueMembre statique OpenProject(Stream, Project.AccessMode, String, IDTSEvents) Opens a password protected project from an I/O stream and specifies an event listener to receive events.
Méthode publiqueMembre statique OpenProject(String, Project.AccessMode, String, IDTSEvents) Opens a password protected project in the specified path and specifies an event listener to receive events.
Méthode publique Save Saves the project to its corresponding storage. DtsException is thrown if the project doesn’t have corresponding storage.
Méthode publique SaveAs(Stream) Saves the project to the specified I/O stream. The specified stream becomes the project storage.
Méthode publique SaveAs(String) Saves the project to the specified storage. The specified file becomes the storage for the project if saving successes.
Méthode publique SaveTo(Stream) Saves the project to the specified I/O stream. Unlike SaveAs, project storage is not changed after saving.
Méthode publique SaveTo(String) Saves the project to the specified file. Unlike SaveAs, project storage is not changed after saving.
Méthode publique ToString (hérité de Object.)

Haut de la page

Événements

  Nom Description
Événement public Disposed Occurs when the component is disposed by a call to the Dispose method.

Haut de la page

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.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Dts.Runtime