API Reference
Class
ActiveDirectoryConnectivityException
Exception thrown when Active Directory connectivity cannot be established.
Inheritance
- Exception
- ActiveDirectoryConnectivityException
Remarks
This exception is typically thrown when a query to Active Directory fails due to network issues or missing permissions.
Examples
try {
// Attempt a directory query
} catch (ActiveDirectoryConnectivityException ex) {
Console.WriteLine($"Failed to connect to {ex.Domain}: {ex.Message}");
}
Constructors
public ActiveDirectoryConnectivityException(String domain, String message) #Creates a new instance indicating a connectivity problem with the specified domain.
Parameters
- domain System.String
- Domain DNS name; may be null when unknown.
- message System.String
- Human-readable error message.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override Void GetObjectData(SerializationInfo info, StreamingContext context) #Returns:
VoidInherited from Exception
Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Properties
public String Domain { get; } #DNS name of the domain that failed to respond.
Inherited Properties
public MethodBase TargetSite { get; } #Inherited from Exception
public override String Message { get; } #Inherited from Exception
public override IDictionary Data { get; } #Inherited from Exception
public Exception InnerException { get; } #Inherited from Exception
public override String HelpLink { get; set; } #Inherited from Exception
public override String Source { get; set; } #Inherited from Exception
public Int32 HResult { get; set; } #Inherited from Exception
public override String StackTrace { get; } #Inherited from Exception