Application.LogProviderInfos Properti

Definisi

Mengembalikan koleksi yang LogProviderInfos berisi LogProviderInfo objek. Properti ini bersifat hanya baca.

public:
 property Microsoft::SqlServer::Dts::Runtime::LogProviderInfos ^ LogProviderInfos { Microsoft::SqlServer::Dts::Runtime::LogProviderInfos ^ get(); };
public Microsoft.SqlServer.Dts.Runtime.LogProviderInfos LogProviderInfos { get; }
member this.LogProviderInfos : Microsoft.SqlServer.Dts.Runtime.LogProviderInfos
Public ReadOnly Property LogProviderInfos As LogProviderInfos

Nilai Properti

Koleksi LogProviderInfos yang berisi semua LogProviderInfo objek untuk aplikasi.

Contoh

Contoh kode berikut menunjukkan cara menghitung penyedia log yang tersedia untuk Layanan Integrasi.

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

Contoh 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

Keterangan

Kontainer Package menyertakan kumpulan penyedia log yang digunakan paket serta tugas dan kontainernya untuk mencatat informasi saat paket berjalan. Hanya kontainer yang Package menyertakan penyedia log, tetapi tugas dan kontainer yang disertakan paket dapat mencatat informasi ke salah satu penyedia log paket. Untuk informasi selengkapnya, lihat Pengelogan Integration Services (SSIS).

Berlaku untuk