Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPFile.Deny method

Denies approval for a file that was submitted for content approval.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void Deny(
	string comment
)

Parameters

comment
Type: System.String

The reason for the denial.

ExceptionCondition
SPException

The item associated with the SPFile or the SPModerationInformation for the item is null .

-or-

An error occurred when updating the item.

Only documents in a list for which content approval has been enabled can be rejected.

Show:
© 2015 Microsoft