다음을 통해 공유


LogProviders 속성

Returns the collection of log providers associated with the package.

네임스페이스:  Microsoft.SqlServer.Dts.Runtime
어셈블리:  Microsoft.SqlServer.ManagedDTS.dll의 Microsoft.SqlServer.ManagedDTS

구문

‘선언
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
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.LogProviderXMLFile.2");
Dim pkg As Package =  New Package() 
' Add a log provider to the package.
Dim logProvs As LogProvider =  pkg.LogProviders.Add("DTS.LogProviderXMLFile.2")