拒绝审批已提交供内容审批的文件。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub Deny ( _
comment As String _
)
用法
Dim instance As SPFile
Dim comment As String
instance.Deny(comment)
public void Deny(
string comment
)
参数
comment
类型:System.String拒绝的理由。
异常
| 异常 | 条件 |
|---|---|
| SPException | 与SPFile或SPModerationInformation的项相关联的项目是 null 。 - 或 - 更新项目时发生错误。 |
备注
只有在已为其启用了内容审批的列表中的文档可以被拒绝。