DirectoryEntry.Invoke(String, Object[]) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Appelle une méthode sur l’objet Services de domaine Active Directory natif.
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
Paramètres
- methodName
- String
Nom de la méthode à appeler.
Retours
Valeur de retour de la méthode appelée.
Exceptions
La méthode native a levé une COMException exception.
La méthode native a levé une TargetInvocationException exception. La InnerException propriété contient une COMException exception qui contient des informations sur l’erreur réelle qui s’est produite.
Remarques
Si la valeur de retour de la méthode native implémente l’interface IADs, un correspondant DirectoryEntry est retourné. Pour plus d’informations sur l’interface IADs, consultez l’article IADs .