Класс PackageInfos

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

Иерархия наследования

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

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public NotInheritable Class PackageInfos _
    Inherits DTSReadOnlyCollectionBase
'Применение
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

Тип PackageInfos обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство Count Gets the number of elements contained in the DTSReadOnlyCollectionBase instance. (Производный от DTSReadOnlyCollectionBase.)
Открытое свойство IsSynchronized Gets a value that indicates whether access to the DTSReadOnlyCollectionBase is synchronized (thread-safe). (Производный от DTSReadOnlyCollectionBase.)
Открытое свойство Item Retrieves the PackageInfo object from the collection.
Открытое свойство SyncRoot Gets an object that can be used to synchronize access to the DTSReadOnlyCollectionBase. (Производный от DTSReadOnlyCollectionBase.)

В начало

Методы

  Имя Описание
Открытый метод Contains Returns a Boolean that indicates whether an object can be retrieved from the collection by using the name, index, GUID, or description parameter.
Открытый метод CopyTo Copies the entire DTSReadOnlyCollectionBase to a compatible one-dimensional array, starting at the specified index of the target array. (Производный от DTSReadOnlyCollectionBase.)
Защищенный метод CreateManagedObject Инфраструктура. (Производный от DTSReadOnlyCollectionBase.)
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Защищенный метод GetCount Инфраструктура. (Производный от DTSReadOnlyCollectionBase.)
Открытый метод GetEnumerator Returns an enumerator for use in iterating over the PackageInfos collection.
Открытый метод GetHashCode (Производный от Object.)
Защищенный метод GetManagedEnumerator Инфраструктура. (Производный от DTSReadOnlyCollectionBase.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Поля

  Имя Описание
Защищенное поле m_unmanagedColl Инфраструктура. (Производный от DTSReadOnlyCollectionBase.)

В начало

Замечания

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.

Примеры

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

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

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.