ערוך

שתף באמצעות


DirectoryServicesCOMException Constructors

Definition

Initializes a new instance of the DirectoryServicesCOMException class.

Overloads

DirectoryServicesCOMException()

Initializes a new instance of the DirectoryServicesCOMException class.

DirectoryServicesCOMException(String)

Initializes a new instance of the DirectoryServicesCOMException class with the specified string.

DirectoryServicesCOMException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the DirectoryServicesCOMException class with the specified serialization information and streaming context.

DirectoryServicesCOMException(String, Exception)

Initializes a new instance of the DirectoryServicesCOMException class with the specified string and exception.

DirectoryServicesCOMException()

Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs

Initializes a new instance of the DirectoryServicesCOMException class.

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

Applies to

DirectoryServicesCOMException(String)

Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs

Initializes a new instance of the DirectoryServicesCOMException class with the specified string.

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

Parameters

message
String

The message that describes the error.

Applies to

DirectoryServicesCOMException(SerializationInfo, StreamingContext)

Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.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 DirectoryServicesCOMException class with the specified serialization information and streaming context.

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

Parameters

info
SerializationInfo

The SerializationInfo to populate with data.

context
StreamingContext

The StreamingContext destination for this serialization.

Attributes

Applies to

DirectoryServicesCOMException(String, Exception)

Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs

Initializes a new instance of the DirectoryServicesCOMException class with the specified string and exception.

public:
 DirectoryServicesCOMException(System::String ^ message, Exception ^ inner);
public DirectoryServicesCOMException (string? message, Exception? inner);
public DirectoryServicesCOMException (string message, Exception inner);
new System.DirectoryServices.DirectoryServicesCOMException : string * Exception -> System.DirectoryServices.DirectoryServicesCOMException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The message that describes the error.

inner
Exception

The exception that is the cause of the current exception.

Applies to