提交文件以使用指定的注释进行内容审批。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub Publish ( _
comment As String _
)
用法
Dim instance As SPFile
Dim comment As String
instance.Publish(comment)
public void Publish(
string comment
)
参数
comment
类型:System.String一个字符串,包含注释。
异常
| 异常 | 条件 |
|---|---|
| SPException | 与该文件关联的列表项是 null 或SPList在其中查找列表项不支持次要版本。 - 或 - - 或 - 发布文件时出错。 |
备注
若要调用此方法时,该文件的父SPList应支持次要版本。