Ағылшын тілінде оқу Өзгерту

Бөлісу құралы:


PrincipalExistsException Constructors

Definition

Instantiates a new instance of the PrincipalExistsException class.

Overloads

PrincipalExistsException()

Instantiates a new instance of the PrincipalExistsException class.

PrincipalExistsException(String)

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

PrincipalExistsException(SerializationInfo, StreamingContext)
Obsolete.

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

PrincipalExistsException(String, Exception)

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

PrincipalExistsException()

Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalExistsException class.

public PrincipalExistsException ();

Remarks

The parameterless constructor initializes a new instance of the PrincipalExistsException 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

.NET 9 (package-provided) және басқа нұсқалар
Өнім Нұсқалар
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

PrincipalExistsException(String)

Source:
exceptions.cs
Source:
exceptions.cs

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

public PrincipalExistsException (string message);

Parameters

message
String

The text of the error message.

Remarks

The PrincipalExistsException 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

.NET 9 (package-provided) және басқа нұсқалар
Өнім Нұсқалар
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

PrincipalExistsException(SerializationInfo, StreamingContext)

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 PrincipalExistsException class from the specified SerializationInfo and StreamingContext instances.

protected PrincipalExistsException (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 PrincipalExistsException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

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

context
StreamingContext

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

Attributes

Applies to

.NET 9 (package-provided) және басқа нұсқалар
Өнім Нұсқалар (Ескірген)
.NET 6 (package-provided), 7 (package-provided) (8 (package-provided), 9 (package-provided))
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

PrincipalExistsException(String, Exception)

Source:
exceptions.cs
Source:
exceptions.cs

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

public PrincipalExistsException (string message, Exception innerException);

Parameters

message
String

The text of the error message.

innerException
Exception

A nested exception.

Remarks

The PrincipalExistsException 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

.NET 9 (package-provided) және басқа нұсқалар
Өнім Нұсқалар
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)