Condividi tramite


Classe PackageInfos

Contains a collection of packages found in Microsoft SQL Server or the Integration Services service. This class cannot be inherited.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Dts.Runtime.DTSReadOnlyCollectionBase
    Microsoft.SqlServer.Dts.Runtime.PackageInfos

Spazio dei nomi  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class PackageInfos _
    Inherits DTSReadOnlyCollectionBase
'Utilizzo
Dim instance As PackageInfos
public sealed class PackageInfos : DTSReadOnlyCollectionBase
public ref class PackageInfos sealed : public DTSReadOnlyCollectionBase
[<SealedAttribute>]
type PackageInfos =  
    class 
        inherit DTSReadOnlyCollectionBase 
    end
public final class PackageInfos extends DTSReadOnlyCollectionBase

Nel tipo PackageInfos sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblica Count Gets the number of elements contained in the DTSReadOnlyCollectionBase instance. Ereditato da DTSReadOnlyCollectionBase.
Proprietà pubblica IsSynchronized Gets a value that indicates whether access to the DTSReadOnlyCollectionBase is synchronized (thread-safe). Ereditato da DTSReadOnlyCollectionBase.
Proprietà pubblica Item Retrieves the PackageInfo object from the collection.
Proprietà pubblica SyncRoot Gets an object that can be used to synchronize access to the DTSReadOnlyCollectionBase. Ereditato da DTSReadOnlyCollectionBase.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Contains Returns a Boolean that indicates whether an object can be retrieved from the collection by using the name, index, GUID, or description parameter.
Metodo pubblico CopyTo Copies the entire DTSReadOnlyCollectionBase to a compatible one-dimensional array, starting at the specified index of the target array. Ereditato da DTSReadOnlyCollectionBase.
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetEnumerator Returns an enumerator for use in iterating over the PackageInfos collection.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

In alto

Osservazioni

This collection enumerates packages. You can retrieve packages that are stored in the Integration Services service and then iterate through them, or you can retrieve packages that are stored in SQL Server. For a sample of how to retrieve Integration Services service packages programmatically, see GetDtsServerPackageInfos. For information about retrieving SQL Server packages programmatically, see GetPackageInfos.

Esempi

The following code example instantiates a PackageInfos object from the Application object.

PackageInfos pInfos = app.GetDtsServerPackageInfos(@"File System", "YOURSERVER");

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Dts.Runtime