dotnet / dotnet/dotnet-api-docs
This method throws exception, instead to return true/false
- Lingua principale
- C#
- Stelle
- 949
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
When this method has been called, it throws ComException with the message "The server is not operational." instead to return true/false.
Example:
bool activeServerExists = DirectoryEntry.Exists($"LDAP://{fullDomainName})");
Is this behavior changed after this document has been published?
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: f5be96cb-7ef7-ff47-3b6c-05ebdfb87182
* Version Independent ID: 69c804c7-1abc-62d0-9733-7bb83c2bb66f
* Content: [DirectoryEntry.Exists(String) Method (System.DirectoryServices)](https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.directoryentry.exists?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(System.DirectoryServices.DirectoryEntry.Exists);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.7.2);k(DevLang-csharp)%26rd%3Dtrue&view=netframework-4.7.2)
* Content Source: [xml/System.DirectoryServices/DirectoryEntry.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.DirectoryServices/DirectoryEntry.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da xml/System.DirectoryServices/DirectoryEntry.xml ed esamina la documentazione di DirectoryEntry.Exists(String) collegata nell’issue. Riproduci la chiamata mostrata rispetto al comportamento pertinente di .NET Framework, quindi determina se la documentazione debba descrivere ComException e cosa dovrebbe indicare il comportamento corretto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100