SPMetabaseObject.InvokeMethod Method

Executes the Invoke method of the current directory entry.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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