Sequence.GetPackagePath 메서드
Returns the path of the package that the sequence container is a part of.
네임스페이스: Microsoft.SqlServer.Dts.Runtime
어셈블리: Microsoft.SqlServer.ManagedDTS(Microsoft.SqlServer.ManagedDTS.dll)
구문
‘선언
Public Function GetPackagePath As String
‘사용 방법
Dim instance As Sequence
Dim returnValue As String
returnValue = instance.GetPackagePath()
public string GetPackagePath()
public:
virtual String^ GetPackagePath() sealed
abstract GetPackagePath : unit -> string
override GetPackagePath : unit -> string
public final function GetPackagePath() : String
반환 값
유형: System.String
A String that contains the path for the package that the sequence container is part of.
구현
IDTSPackagePath.GetPackagePath()
예
The following code example adds a Sequence container to a package, then displays the package path.
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 package = new Package();
Sequence seq = (Sequence)package.Executables.Add("STOCK:SEQUENCE");
Console.WriteLine("Package path: {0}", seq.GetPackagePath());
}
}
}
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 package As Package = New Package()
Dim seq As Sequence = CType(package.Executables.Add("STOCK:SEQUENCE"), Sequence)
Console.WriteLine("Package path: {0}", seq.GetPackagePath())
End Sub
End Class
End Namespace
Sample output:
Package path: \Package\{97669D5A-BF92-4C75-927D-EAD6CFFCE651}