共用方式為


Package.LogProviders Property

Returns the collection of log providers associated with the package.

命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

語法

'宣告
Public ReadOnly Property LogProviders As LogProviders
public LogProviders LogProviders { get; }
public:
property LogProviders^ LogProviders {
    LogProviders^ get ();
}
/** @property */
public LogProviders get_LogProviders ()
public function get LogProviders () : LogProviders

屬性值

A LogProviders collection.

備註

For more information about log providers, see Integration Services 記錄提供者. For more information about using log providers in the graphical user interface, see 在封裝中實作記錄.

範例

The following code sample shows how to add the XML File log provider to the log provider collection in the package.

Package pkg = new Package();
// Add a log provider to the package.
LogProvider logProvs = pkg.LogProviders.Add("DTS.LogProvider.XMLFile.1");
Dim pkg As Package =  New Package() 
' Add a log provider to the package.
Dim logProvs As LogProvider =  pkg.LogProviders.Add("DTS.LogProvider.XMLFile.1")

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

Package Class
Package Members
Microsoft.SqlServer.Dts.Runtime Namespace