Partager via


ServerStub.CheckBlockedMethod - Méthode

Checks whether a method is blocked by an administrator.

Espace de noms :  Microsoft.SharePoint.Client
Assembly :  Microsoft.SharePoint.Client.ServerRuntime (dans Microsoft.SharePoint.Client.ServerRuntime.dll)

Syntaxe

'Déclaration
Protected Friend Sub CheckBlockedMethod ( _
    methodName As String, _
    proxyContext As ProxyContext _
)
'Utilisation
Dim methodName As String
Dim proxyContext As ProxyContext

Me.CheckBlockedMethod(methodName, _
    proxyContext)
protected internal void CheckBlockedMethod(
    string methodName,
    ProxyContext proxyContext
)

Paramètres

  • methodName
    Type : System.String

    The name of the method to check.

Exceptions

Exception Condition
ApiBlockedException

Indicates that the method is blocked by an administrator.

ClientServiceException

The specified method performs a write operation but only read-only operations are allowed for the request.

Remarques

If the method is blocked, CheckBlockedGetProperty(String, ProxyContext) throws an ApiBlockedException exception.

Voir aussi

Référence

ServerStub classe

ServerStub - Membres

Microsoft.SharePoint.Client - Espace de noms