共用方式為


Package.LogProviders 屬性

Gets the collection of log providers associated with the package.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public ReadOnly Property LogProviders As LogProviders 
    Get
'用途
Dim instance As Package 
Dim value As LogProviders 

value = instance.LogProviders
public LogProviders LogProviders { get; }
public:
property LogProviders^ LogProviders {
    LogProviders^ get ();
}
member LogProviders : LogProviders
function get LogProviders () : LogProviders

屬性值

型別:Microsoft.SqlServer.Dts.Runtime.LogProviders
The collection of log providers associated with the package.

備註

For more information about log providers, see Integration Services (SSIS) 記錄. For more information about using log providers in the graphical user interface, see Integration Services (SSIS) 記錄.

範例

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

請參閱

參考

Package 類別

Microsoft.SqlServer.Dts.Runtime 命名空間