Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the file with the specified comment from content approval.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub UnPublish ( _
comment As String _
)
'Usage
Dim instance As SPFile
Dim comment As String
instance.UnPublish(comment)
public void UnPublish(
string comment
)
Parameters
comment
Type: System.StringA string that contains the comment.
Exceptions
| Exception | Condition |
|---|---|
| SPException | The list item associated with the file is null . -or- The SPList in which the list item is located does not support minor versions. -or- The value of the CheckOutType is Online. -or- The moderated list is an unpublished document, which is not pending or approved. -or- The nonmoderated list is an unpublished document, which is not a major version. -or- An error occurred when removing the file. |