Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the primary database file path.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<DisplayDescriptionKeyAttribute("Database_PrimaryFilePathDesc")> _
<DisplayNameKeyAttribute("Database_PrimaryFilePathName")> _
ReadOnly Property PrimaryFilePath As String
Get
'Usage
Dim instance As IDatabaseOptions
Dim value As String
value = instance.PrimaryFilePath
[DisplayDescriptionKeyAttribute("Database_PrimaryFilePathDesc")]
[DisplayNameKeyAttribute("Database_PrimaryFilePathName")]
string PrimaryFilePath { get; }
[DisplayDescriptionKeyAttribute(L"Database_PrimaryFilePathDesc")]
[DisplayNameKeyAttribute(L"Database_PrimaryFilePathName")]
property String^ PrimaryFilePath {
String^ get ();
}
[<DisplayDescriptionKeyAttribute("Database_PrimaryFilePathDesc")>]
[<DisplayNameKeyAttribute("Database_PrimaryFilePathName")>]
abstract PrimaryFilePath : string
function get PrimaryFilePath () : String
Property Value
Type: System.String
A String value containing the primary file path.