IDTSName.Name 속성

정의

개체에 할당된 이름을 가져오거나 설정합니다.

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

속성 값

개체 이름을 포함하는 문자열입니다.

예제

클래스는 IDTSName 클래스를 비롯한 Package 많은 클래스에서 클래스를 통해 DtsContainer 클래스로 EventsProvider 상속되며, 클래스에서 클래스 및 대부분의 다른 클래스로 Package 상속됩니다. 다음 코드 샘플에서는 클래스에서 IDTSName 사용하는 속성을 보여 있습니다 Package .

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

namespace Microsoft.SqlServer.SSIS.Samples  
{  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            Package pkg = new Package();  
            // Display the properties inherited from IDTSName.  
            Console.WriteLine("CreationName: {0}", pkg.CreationName);  
            Console.WriteLine("Name:         {0}", pkg.Name);  
            Console.WriteLine("Description: {0}", pkg.Description);  
            Console.WriteLine("ID:          {0}", pkg.ID);  
        }  
    }  
}  
Imports System  
Imports System.Collections.Generic  
Imports System.Text  
Imports Microsoft.SqlServer.Dts.Runtime  

Namespace Microsoft.SqlServer.SSIS.Samples  
    Class Program  
        Shared  Sub Main(ByVal args() As String)  
            Dim pkg As Package =  New Package()   
            ' Display the properties inherited from IDTSName.  
            Console.WriteLine("CreationName: {0}", pkg.CreationName)  
            Console.WriteLine("Name:         {0}", pkg.Name)  
            Console.WriteLine("Description: {0}", pkg.Description)  
            Console.WriteLine("ID:          {0}", pkg.ID)  
        End Sub  
    End Class  
End Namespace  

샘플 출력:

CreationName: MSDTS. Package.1

이름: {8E2F8EC1-A6E8-4114-8760-0C1A72277B8C}

설명:

ID: {8E2F8EC1-A6E8-4114-8760-0C1A72277B8C}

설명

이 이름은 .와 동일 CreationName하지 않을 수 있습니다. 상속되는 여러 런타임 개체에서 IDTSNameName 속성은 그래픽 사용자 인터페이스에 표시된 값입니다.

적용 대상