다음을 통해 공유


LogEntryInfo.Description 속성

정의

로그 항목에 대한 설명을 가져오거나 설정합니다.

public:
 property System::String ^ Description { System::String ^ get(); void set(System::String ^ value); };
public string Description { get; set; }
member this.Description : string with get, set
Public Property Description As String

속성 값

설명이 포함된 문자열입니다.

구현

예제

다음 코드 예제에서는 컬렉션을 반복 LogEntryInfos 한 다음 찾은 각 LogEntryInfo 속성(예: 을 포함 Description)을 인쇄합니다.

using System;  
using System.Collections.Generic;  
using System.Text;  
using Microsoft.SqlServer.Dts.Runtime;  

namespace LogEntryInfosTest  
{  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            // The package is one of the SSIS Samples.  
            string mySample = @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx";  

            Application app = new Application();  
            Package pkg = app.LoadPackage(mySample, null);  
            LogEntryInfos logInfos = pkg.LogEntryInfos;  

            Console.WriteLine("Number of log entries:  {0}", logInfos.Count.ToString());  
            foreach (LogEntryInfo logInfo in logInfos)  
            {  
                Console.WriteLine("CreationName:   {0}", logInfo.CreationName);  
                Console.WriteLine("Description:    {0}", logInfo.Description);  
                Console.WriteLine("FrequencyHint:  {0}", logInfo.FrequencyHint);  
                Console.WriteLine("ID:             {0}", logInfo.ID);  
                Console.WriteLine("Name:           {0}", logInfo.Name);  
            }  
        }  
    }  
}  
Imports System  
Imports System.Collections.Generic  
Imports System.Text  
Imports Microsoft.SqlServer.Dts.Runtime  

Namespace LogEnTryInfosTest  
    Class Program  
        Shared  Sub Main(ByVal args() As String)  
            ' The package is one of the SSIS Samples.  
            Dim mySample As String =  "C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx"   

            Dim app As Application =  New Application()   
            Dim pkg As Package =  app.LoadPackage(mySample,Nothing)   
            Dim logInfos As LogEnTryInfos =  pkg.LogEnTryInfos   

            Console.WriteLine("Number of log entries:  {0}", logInfos.Count.ToString())  
            Dim logInfo As LogEnTryInfo  
            For Each logInfo In logInfos  
                Console.WriteLine("CreationName:   {0}", logInfo.CreationName)  
                Console.WriteLine("Description:    {0}", logInfo.Description)  
                Console.WriteLine("FrequencyHint:  {0}", logInfo.FrequencyHint)  
                Console.WriteLine("ID:             {0}", logInfo.ID)  
                Console.WriteLine("Name:           {0}", logInfo.Name)  
            Next  
        End Sub  
    End Class  
End Namespace  

샘플 출력:

로그 항목 수: 1

CreationName:

설명: 패키지 진단 정보(예: 최대 동시 실행 파일)를 기록합니다.

FrequencyHint: 일관성

ID: {65F44252-EB0C-4CCB-ADE4-BA4AB86B4CF9}

이름: 진단

적용 대상