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 继承。)
公共方法 Equals (从 Object 继承。)
公共方法 GetEnumerator Returns an enumerator for use in iterating over the PackageInfos collection.
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 ToString (从 Object 继承。)

页首

注释

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");

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Dts.Runtime 命名空间