File.Approve 方法
Approves the file submitted for content approval with the specified comment.
命名空间: 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 Approve ( _
comment As String _
)
用法
Dim instance As File
Dim comment As String
instance.Approve(comment)
public void Approve(
string comment
)
参数
comment
类型:System.StringThe comment about the approval.
异常
异常 | 条件 |
---|---|
SPException | The item associated with the SPFile or the SPModerationInformation for the item is null. |
Exception | An error occurs when updating the item. |
备注
Only documents in a list for which content approval has been enabled can be approved.