Метод File.Deny
Denies approval for a file that was submitted for content approval.
Пространство имен: 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 Deny ( _
comment As String _
)
'Применение
Dim instance As File
Dim comment As String
instance.Deny(comment)
public void Deny(
string comment
)
Параметры
comment
Тип: System.StringThe reason for the denial.
Исключения
Исключение | Условие |
---|---|
SPException | The item associated with the SPFile or the SPModerationInformation for the item is null. -or- An error occurred when updating the item. |
Замечания
Only documents in a list for which content approval has been enabled can be rejected.