SPMetabaseObject.InvokeMethod Method
Executes the Invoke method of the current directory entry.
Namespace: Microsoft.SharePoint.AdministrationOperation
Assembly: Microsoft.SharePoint.AdministrationOperation (in Microsoft.SharePoint.AdministrationOperation.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.StringA 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
Microsoft.SharePoint.AdministrationOperation Namespace
Other Resources
InvokeMethod