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.