RelocateFile.PhysicalFileName 属性

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.SmoExtended(在 Microsoft.SqlServer.SmoExtended.dll 中)

语法

声明
Public Property PhysicalFileName As String 
    Get 
    Set
用法
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)

属性值

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

注释

The default constructor initializes any fields to their default values.

示例

备份和还原数据库和事务日志

请参阅

参考

RelocateFile 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

RESTORE (Transact-SQL)

SQL Server 数据库的备份和还原