Partager via


Propriété DatabaseFileMappingsDictionary.Item

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Default Property Item ( _
    sourceFilePath As String _
) As String 
    Get 
    Set
'Utilisation
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 prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

  • sourceFilePath
    Type : System.String
    [T.System.String] that identifies the source database file path

Valeur de propriété

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

Voir aussi

Référence

DatabaseFileMappingsDictionary Classe

Espace de noms Microsoft.SqlServer.Management.Smo