共用方式為


Description 屬性

Gets or sets a description about the object.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Property Description As String
    Get
    Set
'用途
Dim instance As IDTSName
Dim value As String

value = instance.Description

instance.Description = value
string Description { get; set; }
property String^ Description {
    String^ get ();
    void set (String^ value);
}
abstract Description : string with get, set
function get Description () : String
function set Description (value : String)

屬性值

型別:System. . :: . .String
A String that contains information about the object.

範例

The IDTSName class is inherited by many classes, including the Package class, through the DtsContainer class and into the EventsProvider class, which from there, it is inherited into the Package class and most other classes. The following code sample shows the IDTSName properties as used by the Package class.

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

Sample Output:

CreationName: SSIS.Package.2

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

Description:

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