Application.ComponentStorePath 属性

定义

返回存储管道组件的路径。 此属性为只读。

public:
 property System::String ^ ComponentStorePath { System::String ^ get(); };
public string ComponentStorePath { get; }
member this.ComponentStorePath : string
Public ReadOnly Property ComponentStorePath As String

属性值

一个字符串,指示管道组件的位置。

示例

以下示例返回管道组件的路径,该路径通常是 C:\Program Files\Microsoft SQL Server\100\DTS。

class ApplicationTests
    {
        static void Main(string[] args)
        {
            Application app = new Application();
            String pipelinecomp = app.ComponentStorePath;
            Console.WriteLine(pipelinecomp);
        }
    }
Class ApplicationTests
        Sub Main(ByVal args() As String)
            Dim app As Application =  New Application() 
            Dim pipelinecomp As String =  app.ComponentStorePath 
            Console.WriteLine(pipelinecomp)
        End Sub
End Class

适用于