Application.LogProviderInfos Property
Returns a LogProviderInfos collection that contains LogProviderInfo objects. This property is read-only.
命名空间: Microsoft.SqlServer.Dts.Runtime
程序集: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
语法
声明
Public ReadOnly Property LogProviderInfos As LogProviderInfos
public LogProviderInfos LogProviderInfos { get; }
public:
property LogProviderInfos^ LogProviderInfos {
LogProviderInfos^ get ();
}
/** @property */
public LogProviderInfos get_LogProviderInfos ()
public function get LogProviderInfos () : LogProviderInfos
属性值
A LogProviderInfos collection that contains all the LogProviderInfo objects for the application.
备注
已更新的示例代码:2006 年 7 月 17 日
A Package container includes a collection of log providers that a package and its tasks and containers use to log information when the package runs. Only the Package container includes log providers, but the tasks and containers that the package includes can log information to any of the package log providers. For more information, see 在包中实现日志记录.
示例
The following code example shows how to enumerate over the log providers available to Integration Services.
class ApplicationTests
{
static void Main(string[] args)
{
Application app = new Application();
LogProviderInfos lpis = app.LogProviderInfos;
foreach (LogProviderInfo x in lpis)
Console.WriteLine(x.Name);
}
}
class ApplicationTests
Sub Main(ByVal args() As String)
Dim app As Application = New Application()
Dim lpis As LogProviderInfos = app.LogProviderInfos
For Each x As LogProviderInfo In lpis
Console.WriteLine(x.Name)
Next
End Sub
End Class
Sample Output:
DTS Log Provider for Text Files
DTS Log Provider for SQL Server Profiler
DTS Log Provider for SQL Server
DTS Log Provider for Windows Event Log
DTS Log Provider for XML Files
线程安全
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 的硬件和软件要求。
请参阅
参考
Application Class
Application Members
Microsoft.SqlServer.Dts.Runtime Namespace