DuplicateIdException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DuplicateIdException() |
Initializes a new instance of the DuplicateIdException class. |
DuplicateIdException(String) |
Initializes a new instance of the DuplicateIdException class by using the provided message. |
DuplicateIdException(SerializationInfo, StreamingContext) |
Initializes a new instance of the DuplicateIdException class by using the provided information and context. |
DuplicateIdException(String, Exception) |
Initializes a new instance of the DuplicateIdException class by using the provided message and inner exception. |
DuplicateIdException()
Initializes a new instance of the DuplicateIdException class.
public:
DuplicateIdException();
public DuplicateIdException ();
Public Sub New ()
Applies to
DuplicateIdException(String)
Initializes a new instance of the DuplicateIdException class by using the provided message.
public:
DuplicateIdException(System::String ^ msg);
public DuplicateIdException (string msg);
new Microsoft.VisualStudio.TestTools.Exceptions.DuplicateIdException : string -> Microsoft.VisualStudio.TestTools.Exceptions.DuplicateIdException
Public Sub New (msg As String)
Parameters
- msg
- String
Message that describes the exception.
Applies to
DuplicateIdException(SerializationInfo, StreamingContext)
Initializes a new instance of the DuplicateIdException class by using the provided information and context.
protected:
DuplicateIdException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DuplicateIdException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Exceptions.DuplicateIdException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Exceptions.DuplicateIdException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Information about the exception.
- context
- StreamingContext
The source and the destination of the exception.
Applies to
DuplicateIdException(String, Exception)
Initializes a new instance of the DuplicateIdException class by using the provided message and inner exception.
public:
DuplicateIdException(System::String ^ msg, Exception ^ inner);
public DuplicateIdException (string msg, Exception inner);
new Microsoft.VisualStudio.TestTools.Exceptions.DuplicateIdException : string * Exception -> Microsoft.VisualStudio.TestTools.Exceptions.DuplicateIdException
Public Sub New (msg As String, inner As Exception)
Parameters
- msg
- String
Message that describes the exception.
- inner
- Exception
Exception that caused the current exception.