NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DirectoryEntry.Invoke

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;

Parameters

methodName
Then name of the method to invoke.
args
An array of type Object that contains the arguments of the method to invoke.

Return Value

The return value of the invoked method.

Exceptions

Exception Type Condition
MissingMethodException The method to invoke cannot be found.

Remarks

If the the return value implements the IADs interface then a corresponding DirectoryEntry instance is returned instead.

See Also

DirectoryEntry Class | DirectoryEntry Members | System.DirectoryServices Namespace | Object