IDTSName.ID Özelliği
Nesneye atanan benzersiz bir kimlik verir.Bu genellikle bir GUID değeridir.Bu özellik salt okunurdur.
Ad Alanı: Microsoft.SqlServer.Dts.Runtime
Derleme: Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)
Sözdizimi
'Bildirim
ReadOnly Property ID As String
Get
'Kullanım
Dim instance As IDTSName
Dim value As String
value = instance.ID
string ID { get; }
property String^ ID {
String^ get ();
}
abstract ID : string
function get ID () : String
Özellik Değeri
Tür: System.String
A dize , genellikle bir GUID benzersiz bir kod içerir.
Örnekler
IDTSName Sınıfı da dahil olmak üzere pek çok sınıf tarafından devralınan Package ile sınıf DtsContainer sınıfı ve içine EventsProvider buradan içine devralınan sınıfı, Package sınıf ve en diğer sınıflar.Aşağıdaki kod örneği gösterildiği IDTSName tarafından kullanılan gibi özellikler Package WalkTree
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
Örnek Çıktı:
CreationName: SSIS.Package.2
Name: {8E2F8EC1-A6E8-4114-8760-0C1A72277B8C}
Description:
ID: {8E2F8EC1-A6E8-4114-8760-0C1A72277B8C}