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字串,包含有關簽入註解。
checkInType
Type: Microsoft.SharePoint.SPCheckinType指定簽入的型別列舉值。
Exceptions
Exception | Condition |
---|---|
SpException | checkInType是大於OverwriteCheckIn或小於MinorCheckIn,或簽入檔案時發生錯誤。 |