Calls a method on the native Active Directory.
[Visual Basic] Public Function Invoke( _ ByVal methodName As String, _ ByVal ParamArray args() As Object _ ) As Object [C#] public object Invoke( string methodName, params object[] args ); [C++] public: Object* Invoke( String* methodName, Object* args[] ); [JScript] public function Invoke( methodName : String, args : Object[] ) : Object;
The return value of the invoked method.
Exception Type | Condition |
---|---|
MissingMethodException | The method to invoke cannot be found. |
If the the return value implements the IADs interface then a corresponding DirectoryEntry instance is returned instead.
DirectoryEntry Class | DirectoryEntry Members | System.DirectoryServices Namespace | Object