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.
Denies approval for a file that was submitted for content approval.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub Deny ( _
comment As String _
)
'Usage
Dim instance As SPFile
Dim comment As String
instance.Deny(comment)
public void Deny(
string comment
)
Parameters
comment
Type: System.StringThe reason for the denial.
Exceptions
| Exception | Condition |
|---|---|
| SPException | The item associated with the SPFile or the SPModerationInformation for the item is null . -or- An error occurred when updating the item. |
Remarks
Only documents in a list for which content approval has been enabled can be rejected.