Partager via


File.Deny - Méthode

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

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Sub Deny ( _
    comment As String _
)
'Utilisation
Dim instance As File
Dim comment As String

instance.Deny(comment)
public void Deny(
    string comment
)

Paramètres

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.

Remarques

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

Voir aussi

Référence

File classe

File - Membres

Microsoft.SharePoint.Client - Espace de noms