ערוך

שתף באמצעות


AddInSegmentDirectoryNotFoundException Constructors

Definition

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class.

Overloads

AddInSegmentDirectoryNotFoundException()

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class.

AddInSegmentDirectoryNotFoundException(String)

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class with a specified message.

AddInSegmentDirectoryNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class with serialization data.

AddInSegmentDirectoryNotFoundException(String, Exception)

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.

AddInSegmentDirectoryNotFoundException()

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error (for example, "The target application domain has been unloaded."). This message takes the current system culture into account.

The following table shows the initial property values for an instance of the AddInSegmentDirectoryNotFoundException class.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The localized error message string.

Applies to

AddInSegmentDirectoryNotFoundException(String)

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class with a specified message.

public:
 AddInSegmentDirectoryNotFoundException(System::String ^ message);
public AddInSegmentDirectoryNotFoundException (string message);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : string -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Public Sub New (message As String)

Parameters

message
String

A message that describes the error.

Remarks

The following table shows the initial property values for an instance of the AddInSegmentDirectoryNotFoundException class.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The localized error message string.

Applies to

AddInSegmentDirectoryNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class with serialization data.

protected:
 AddInSegmentDirectoryNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AddInSegmentDirectoryNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The object that holds the serialized object data.

context
StreamingContext

The contextual information about the source or destination object data.

Remarks

This constructor is called during deserialization to reconstitute an exception object that is transmitted over a stream. For more information, see XML and SOAP Serialization.

The following table shows the initial property values for an instance of the AddInSegmentDirectoryNotFoundException class.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The localized error message string.

Applies to

AddInSegmentDirectoryNotFoundException(String, Exception)

Initializes a new instance of the AddInSegmentDirectoryNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 AddInSegmentDirectoryNotFoundException(System::String ^ message, Exception ^ innerException);
public AddInSegmentDirectoryNotFoundException (string message, Exception innerException);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : string * Exception -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A message that describes the error.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed to the constructor, or a null reference if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of the AddInSegmentDirectoryNotFoundException class.

Property Value
InnerException The inner exception reference.
Message The localized error message string.

Applies to