Поделиться через


Метод 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