مشاركة عبر


RelocateFile Class

The RelocateFile object is a programmatic tool that lets a file be relocated.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.RelocateFile

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

Syntax

'Declaration
Public Class RelocateFile
'Usage
Dim instance As RelocateFile
public class RelocateFile
public ref class RelocateFile
type RelocateFile =  class end
public class RelocateFile

The RelocateFile type exposes the following members.

Constructors

  Name Description
Public method RelocateFile() Initializes a new instance of the RelocateFile class.
Public method RelocateFile(String, String) Initializes a new instance of the RelocateFile class.

Top

Properties

  Name Description
Public property LogicalFileName Gets or sets the logical file name for the specified file.
Public property PhysicalFileName Gets or sets the physical file name for the specified file.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

The RelocateFile class is used with the RelocateFiles property to relocate files during a restore operation.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace