Szerkesztés

Megosztás a következőn keresztül:


PrincipalServerDownException Constructors

Definition

Instantiates a new instance of the PrincipalServerDownException class.

Overloads

PrincipalServerDownException()

Instantiates a new instance of the PrincipalServerDownException class.

PrincipalServerDownException(String)

Instantiates a new instance of the PrincipalServerDownException class with the specified error message.

PrincipalServerDownException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the PrincipalServerDownException class from the specified SerializationInfo and StreamingContext instances.

PrincipalServerDownException(String, Exception)

Instantiates a new instance of the PrincipalServerDownException class with the specified error message and specified nested exception.

PrincipalServerDownException(String, Int32)

Instantiates a new instance of the PrincipalServerDownException class with the specified error message and specified error code.

PrincipalServerDownException(String, Exception, Int32)

Instantiates a new instance of the PrincipalServerDownException class with the specified error message, the specified nested exception, and the specified error code.

PrincipalServerDownException(String, Exception, Int32, String)

Instantiates a new instance of the PrincipalServerDownException class with the specified error message, the specified nested exception, the specified error code, and the specified server name.

PrincipalServerDownException()

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalServerDownException class.

public:
 PrincipalServerDownException();
public PrincipalServerDownException ();
Public Sub New ()

Remarks

The parameterless constructor initializes a new instance of the PrincipalServerDownException class. The Message property is initialized to a system-supplied message that describes the error. This message takes into account the current system culture. The InnerException property is initialized to null.

Applies to

PrincipalServerDownException(String)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalServerDownException class with the specified error message.

public:
 PrincipalServerDownException(System::String ^ message);
public PrincipalServerDownException (string message);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String)

Parameters

message
String

An error message.

Remarks

The PrincipalServerDownException instance is initialized with the Message property set to the value of message. If message is null, the Message property is initialized to a system-supplied message.

Applies to

PrincipalServerDownException(SerializationInfo, StreamingContext)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initializes a new instance of the PrincipalServerDownException class from the specified SerializationInfo and StreamingContext instances.

protected:
 PrincipalServerDownException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PrincipalServerDownException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.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}")]
protected PrincipalServerDownException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
[<System.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}")>]
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo that contains the information required to serialize the new PrincipalServerDownException.

context
StreamingContext

A StreamingContext that contains the source of the serialized stream that is associated with the new PrincipalServerDownException.

Attributes

Applies to

PrincipalServerDownException(String, Exception)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalServerDownException class with the specified error message and specified nested exception.

public:
 PrincipalServerDownException(System::String ^ message, Exception ^ innerException);
public PrincipalServerDownException (string message, Exception innerException);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string * Exception -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The text of the message.

innerException
Exception

A nested exception.

Remarks

The PrincipalServerDownException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException. If message is null, the Message property is initialized to a system-supplied message. The InnerException is initialized to null.

Applies to

PrincipalServerDownException(String, Int32)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalServerDownException class with the specified error message and specified error code.

public:
 PrincipalServerDownException(System::String ^ message, int errorCode);
public PrincipalServerDownException (string message, int errorCode);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string * int -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String, errorCode As Integer)

Parameters

message
String

The text of the message.

errorCode
Int32

An error code.

Remarks

The PrincipalServerDownException instance is initialized with the Message property set to the value of message and the ErrorCode property set to the value of errorCode. If message is null, the Message property is initialized to a system-supplied message.

Applies to

PrincipalServerDownException(String, Exception, Int32)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalServerDownException class with the specified error message, the specified nested exception, and the specified error code.

public:
 PrincipalServerDownException(System::String ^ message, Exception ^ innerException, int errorCode);
public PrincipalServerDownException (string message, Exception innerException, int errorCode);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string * Exception * int -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String, innerException As Exception, errorCode As Integer)

Parameters

message
String

The text of the error message.

innerException
Exception

A nested exception.

errorCode
Int32

An error code.

Remarks

The PrincipalServerDownException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException, and the private errorCode property is set to errorCode. If message is null, the Message property is initialized to a system-supplied message. The InnerException is initialized to null.

Applies to

PrincipalServerDownException(String, Exception, Int32, String)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalServerDownException class with the specified error message, the specified nested exception, the specified error code, and the specified server name.

public:
 PrincipalServerDownException(System::String ^ message, Exception ^ innerException, int errorCode, System::String ^ serverName);
public PrincipalServerDownException (string message, Exception innerException, int errorCode, string serverName);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string * Exception * int * string -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String, innerException As Exception, errorCode As Integer, serverName As String)

Parameters

message
String

The text of the message.

innerException
Exception

A nested exception.

errorCode
Int32

An error code.

serverName
String

A server name.

Remarks

The PrincipalServerDownException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException, the private errorCode property is set to errorCode, and the private serverName property is set to serverName. If message is null, the Message property is initialized to a system-supplied message. The InnerException is initialized to null.

Applies to