Delen via


RelocateFile.PhysicalFileName Property

Gets or sets the physical file name for the specified file.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public Property PhysicalFileName As String 
    Get 
    Set
'Usage
Dim instance As RelocateFile 
Dim value As String 

value = instance.PhysicalFileName

instance.PhysicalFileName = value
public string PhysicalFileName { get; set; }
public:
property String^ PhysicalFileName {
    String^ get ();
    void set (String^ value);
}
member PhysicalFileName : string with get, set
function get PhysicalFileName () : String 
function set PhysicalFileName (value : String)

Property Value

Type: System.String
A String value that specifies the physical file name for the specified file.

Remarks

The default constructor initializes any fields to their default values.

Examples

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

RelocateFile Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

RESTORE (Transact-SQL)

Back Up and Restore of SQL Server Databases