次の方法で共有


Path プロパティ

ファイルへのパスを取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Dts.ManagedConnections
アセンブリ:  Microsoft.SqlServer.ManagedConnections (Microsoft.SqlServer.ManagedConnections.dll)

構文

'宣言
Public Property Path As String
    Get
    Set
'使用
Dim instance As MSMQConn
Dim value As String

value = instance.Path

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

プロパティ値

型: System. . :: . .String
ファイルへのパスを表す String です。

使用例

次のコード サンプルでは、Path プロパティの設定方法を示します。

msmqconn.Path = @"myServer\test";