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.