A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.duplicatewaitobjectexception.-ctor below:

DuplicateWaitObjectException Constructor (System) | Microsoft Learn

DuplicateWaitObjectException Constructors Definition Overloads DuplicateWaitObjectException() DuplicateWaitObjectException(String) DuplicateWaitObjectException(SerializationInfo, StreamingContext)
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs

Caution

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

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

The contextual information about the source or destination.

Attributes
Remarks

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

See also DuplicateWaitObjectException(String, Exception)
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs

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

public:
 DuplicateWaitObjectException(System::String ^ message, Exception ^ innerException);
public DuplicateWaitObjectException(string? message, Exception? innerException);
public DuplicateWaitObjectException(string message, Exception innerException);
new DuplicateWaitObjectException : string * Exception -> DuplicateWaitObjectException
Public Sub New (message As String, innerException As Exception)
Parameters
message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, 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 this constructor.

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

Property Value InnerException The exception specified by innerException. Message The error message string specified by message. DuplicateWaitObjectException(String, String)
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs
Source:
DuplicateWaitObjectException.cs

Initializes a new instance of the DuplicateWaitObjectException class with a specified error message and the name of the parameter that causes this exception.

public:
 DuplicateWaitObjectException(System::String ^ parameterName, System::String ^ message);
public DuplicateWaitObjectException(string? parameterName, string? message);
public DuplicateWaitObjectException(string parameterName, string message);
new DuplicateWaitObjectException : string * string -> DuplicateWaitObjectException
Public Sub New (parameterName As String, message As String)
Parameters
parameterName
String

The name of the parameter that caused the exception.

message
String

The message that describes the error.

Remarks

The content of the parameterName and message parameters is intended to be understood by humans. The caller of this constructor is required to ensure that these strings have been localized for the current system culture.

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 into the constructor, or a null reference (Nothing in Visual Basic) 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 DuplicateWaitObjectException.

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4