DirectoryEntry.Invoke(String, Object[]) Metodo

Definizione

Chiama un metodo nell'oggetto Active Directory Domain Services nativo.

public:
 System::Object ^ Invoke(System::String ^ methodName, ... cli::array <System::Object ^> ^ args);
public object? Invoke(string methodName, params object?[]? args);
public object Invoke(string methodName, params object[] args);
member this.Invoke : string * obj[] -> obj
Public Function Invoke (methodName As String, ParamArray args As Object()) As Object

Parametri

methodName
String

Nome del metodo da richiamare.

args
Object[]

Matrice di oggetti di tipo Object che contiene gli argomenti del metodo da richiamare.

Valori restituiti

Valore restituito del metodo richiamato.

Eccezioni

Il metodo nativo ha generato un'eccezione COMException .

Il metodo nativo ha generato un'eccezione TargetInvocationException . La InnerException proprietà contiene un'eccezione COMException che contiene informazioni sull'errore effettivo che si è verificato.

Commenti

Se il valore restituito del metodo nativo implementa l'interfaccia IADs, viene restituito un corrispondente DirectoryEntry . Per altre informazioni sull'interfaccia ID, vedere l'articolo ID .

Si applica a