Item 属性

Returns the database file mapping information for the specified source file.

命名空间:  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] that identifies the source database file path

属性值

类型:System. . :: . .String
A [T.System.String] that identifies the full path to the source database file, including the file name.