DirectoryEntry.Invoke (String, Object[][])
The Invoke method calls a method on the native Active Directory.
public Object Invoke(
String methodName,
Object[] args
);
Public Function Invoke( _
ByVal methodName As String, _
ByVal args() As Object _
) As Object
Parameters
- methodName
The name of the method to invoke. - args
An array of type Object that contains the arguments of the method to invoke.
Return Values
The return value of the invoked method.
Security
- Use DirectoryServicesPermission for reading, writing, deleting, changing, and adding to the Active Directory hierarchy. Associated enumeration: DirectoryServicesPermissionAccess.Write.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code.
Remarks
If the return value of the native method implements the IADs interface, a corresponding DirectoryEntry is returned.
Requirements
Client | Requires Windows XP Home Edition, Windows XP Professional, Windows Me, or Windows 98. |
Server | Requires Windows Server 2003, Windows 2000, or Windows NT 4.0. |
Namespace | Defined in System.DirectoryServices. |
Assembly | Requires System.DirectoryServices (in System.DirectoryServices.dll). |
.NET Framework | Requires .NET Framework 1.0. |
See Also
DirectoryEntry Class, DirectoryEntry Members, Object, System.DirectoryServices Namespace, DirectoryEntry Members (Visual J# Syntax), Managed Extensions for C++ Programming