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.StringThe name of the method to check.
proxyContext
Type : Microsoft.SharePoint.Client.ProxyContextContains information about the general state of a client request and response operation.
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.