Udostępnij przez


Właściwość DatabaseFileMappingsDictionary.Item

Przywraca bazę danych mapowanie pliku informacji o pliku określonego źródło.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Default Property Item ( _
    sourceFilePath As String _
) As String
    Get
    Set
'Użycie
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
Język JScript obsługuje używanie indeksowanych właściwości, ale nie obsługuje deklarowania nowych.

Parametry

  • sourceFilePath
    Typ: System.String
    [T.System.String] identyfikujący źródłowa baza danych ścieżki pliku

Wartość właściwości

Typ: System.String
A [T.System.String] , które identyfikują pełną ścieżka do źródłowa baza danych pliku, w tym nazwę pliku.