共用方式為


SPFile.CheckIn method (String, SPCheckinType)

檢查文件庫,根據指定的註解和簽入的型別來執行檔案中。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Sub CheckIn ( _
    comment As String, _
    checkInType As SPCheckinType _
)
'用途
Dim instance As SPFile
Dim comment As String
Dim checkInType As SPCheckinType

instance.CheckIn(comment, checkInType)
public void CheckIn(
    string comment,
    SPCheckinType checkInType
)

參數

  • comment
    Type: System.String

    字串,包含有關簽入註解。

Exceptions

Exception Condition
SpException

checkInType是大於OverwriteCheckIn或小於MinorCheckIn,或簽入檔案時發生錯誤。

請參閱

參照

SPFile class

SPFile members

CheckIn overload

Microsoft.SharePoint namespace