Share via


SPMetabaseObject.InvokeMethod method

Executes the Invoke method of the current directory entry.

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

Syntax

'Declaration
Protected Function InvokeMethod ( _
    method As String _
) As Boolean
'Usage
Dim method As String
Dim returnValue As Boolean

returnValue = Me.InvokeMethod(method)
protected bool InvokeMethod(
    string method
)

Parameters

  • method
    Type: System.String

    A string that contains the name of the method to invoke.

Return value

Type: System.Boolean
True if the operation succeeds; otherwise, false.

Remarks

The method that is invoked is a synchronous operation. This method waits for the called method to complete execution and either return a value or throw an exception. Exceptions that can be thrown are described in the documentation for the method that was invoked.

See also

Reference

SPMetabaseObject class

SPMetabaseObject members

Microsoft.SharePoint.Administration namespace

Other resources

InvokeMethod