Freigeben über


Project-Klasse

Represents Integration Services project which contains packages and parameters.

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public NotInheritable Class Project _
    Inherits DtsObject _
    Implements IComponent, IDisposable
'Usage
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

Der Project-Typ macht folgende Elemente verfügbar.

Eigenschaften

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

Zum Anfang

Methoden

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

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis Disposed Occurs when the component is disposed by a call to the Dispose method.

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Dts.Runtime-Namespace