DataFile.SetOffline Method

Sets the database file status to offline.

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

Syntax

'Declaration
Public Sub SetOffline
'Usage
Dim instance As DataFile

instance.SetOffline()
public void SetOffline()
public:
void SetOffline()
member SetOffline : unit -> unit 
public function SetOffline()