SPFile.Approve method
核准專為內容核准而送出並包含指定註解的檔案。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub Approve ( _
comment As String _
)
'用途
Dim instance As SPFile
Dim comment As String
instance.Approve(comment)
public void Approve(
string comment
)
參數
comment
Type: System.String核准有關的註解。
Exceptions
Exception | Condition |
---|---|
SPException | SPFile或SPModerationInformation的項目相關聯的項目是 null 。 |
Exception | 更新項目時,就會發生錯誤。 |
備註
只有在已啟用內容核准的清單中的文件可以核准。