Partager via


ServerStub.InvokeMethod - Méthode (Object, String, ClientValueCollection, ProxyContext, Boolean)

Invokes a method on an object of the type corresponding to the derived ServerStub implementation using the specified client values as arguments.

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

Syntaxe

'Déclaration
Protected Friend Overridable Function InvokeMethod ( _
    target As Object, _
    methodName As String, _
    args As ClientValueCollection, _
    proxyContext As ProxyContext, _
    <OutAttribute> ByRef isVoid As Boolean _
) As Object
'Utilisation
Dim target As Object
Dim methodName As String
Dim args As ClientValueCollection
Dim proxyContext As ProxyContext
Dim isVoid As Boolean
Dim returnValue As Object

returnValue = Me.InvokeMethod(target, _
    methodName, args, proxyContext, isVoid)
protected internal virtual Object InvokeMethod(
    Object target,
    string methodName,
    ClientValueCollection args,
    ProxyContext proxyContext,
    out bool isVoid
)

Paramètres

  • target
    Type : System.Object

    The instance of the object to invoke a method on.

  • methodName
    Type : System.String

    The name of the method to invoke.

  • isVoid
    Type : System.Boolean

    true if the method returns "void"; otherwise, false.

Valeur renvoyée

Type : System.Object
The updated object instance.

Voir aussi

Référence

ServerStub classe

ServerStub - Membres

InvokeMethod - Surcharge

Microsoft.SharePoint.Client - Espace de noms