SPFile.Publish method
送出檔案進行內容核准,並加入指定的註解。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub Publish ( _
comment As String _
)
'用途
Dim instance As SPFile
Dim comment As String
instance.Publish(comment)
public void Publish(
string comment
)
參數
comment
Type: System.String字串,包含註解。
Exceptions
Exception | Condition |
---|---|
SPException | 與檔案相關聯的清單項目是 null 或SPList的清單項目找出不支援次要版本。 -或- -或- 發佈檔案時,就會發生錯誤。 |
備註
若要呼叫這個方法,此檔案的父代SPList應該支援次要版本。