次の方法で共有


DatabaseFileMappingsDictionary.Item プロパティ

指定したソース ファイルのデータベース ファイルのマッピング情報を返します。

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

構文

'宣言
Public Default Property Item ( _
    sourceFilePath As String _
) As String 
    Get 
    Set
'使用
Dim instance As DatabaseFileMappingsDictionary 
Dim sourceFilePath As String 
Dim value As String 

value = instance(sourceFilePath)

instance(sourceFilePath) = value
public string this[
    string sourceFilePath
] { get; set; }
public:
property String^ default[String^ sourceFilePath] {
    String^ get (String^ sourceFilePath);
    void set (String^ sourceFilePath, String^ value);
}
member Item : string with get, set
JScript はインデックス化されたプロパティの使用をサポートしていますが、新規の宣言はサポートしていません。

パラメーター

  • sourceFilePath
    型: System.String
    ソース データベース ファイルのパスを識別する [T.System.String] です。

プロパティ値

型: System.String
ファイル名を含む、ソース データベース ファイルの完全パスを識別する [T.System.String] です。

関連項目

参照

DatabaseFileMappingsDictionary クラス

Microsoft.SqlServer.Management.Smo 名前空間