共用方式為


SPFile.TakeOffline Method

Takes the most current approved or major version of the file offline.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub TakeOffline
'Usage
Dim instance As SPFile

instance.TakeOffline()
public void TakeOffline()

Exceptions

Exception Condition
SPException

An error occurred while taking the file offline.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace