File.CheckIn 方法

Checks the file in to a document library based on the check-in type.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Sub CheckIn ( _
    comment As String, _
    checkInType As CheckinType _
)
用法
Dim instance As File
Dim comment As String
Dim checkInType As CheckinType

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

参数

  • comment
    类型:System.String

    Specifies a comment for the check-in.

    Its length must be equal to or less than 1023.

异常

异常 条件
[Microsoft.SharePoint.SPFileCheckOutException]

File is not checked out. Error code: -2147024738.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

另请参阅

引用

File 类

File 成员

Microsoft.SharePoint.Client 命名空间