TypedDataSetGeneratorException Constructors

Definition

Initializes a new instance of the TypedDataSetGeneratorException class.

Overloads

TypedDataSetGeneratorException()

Initializes a new instance of the TypedDataSetGeneratorException class with a system-supplied message that describes the error.

TypedDataSetGeneratorException(IList)

Initializes a new instance of the TypedDataSetGeneratorException class by passing in a collection of errors.

TypedDataSetGeneratorException(String)

Initializes a new instance of the TypedDataSetGeneratorException class with a specified message that describes the error.

TypedDataSetGeneratorException(SerializationInfo, StreamingContext)

Initializes a new instance of the TypedDataSetGeneratorException class, using the specified serialization information and streaming context.

TypedDataSetGeneratorException(String, Exception)

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

Remarks

The TypedDataSetGeneratorException class indicates that a conflict occurred an attempt is being made to generate a typed dataset class.

TypedDataSetGeneratorException()

Initializes a new instance of the TypedDataSetGeneratorException class with a system-supplied message that describes the error.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply" This message takes into account the current system culture.

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

Property Value
InnerException null.
Message The localized error message string.

The TypedDataSetGeneratorException class indicates that a conflict occurred while an attempt is being made to generate a typed dataset class.

Applies to

TypedDataSetGeneratorException(IList)

Initializes a new instance of the TypedDataSetGeneratorException class by passing in a collection of errors.

public:
 TypedDataSetGeneratorException(System::Collections::IList ^ list);
public TypedDataSetGeneratorException (System.Collections.IList list);
new System.Data.Design.TypedDataSetGeneratorException : System.Collections.IList -> System.Data.Design.TypedDataSetGeneratorException
Public Sub New (list As IList)

Parameters

list
IList

An IList of errors.

Remarks

The TypedDataSetGeneratorException class indicates that a conflict occurred while an attempt is being made to generate a typed dataset class.

Applies to

TypedDataSetGeneratorException(String)

Initializes a new instance of the TypedDataSetGeneratorException class with a specified message that describes the error.

public:
 TypedDataSetGeneratorException(System::String ^ message);
public TypedDataSetGeneratorException (string message);
new System.Data.Design.TypedDataSetGeneratorException : string -> System.Data.Design.TypedDataSetGeneratorException
Public Sub New (message As String)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Remarks

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

Property Value
InnerException null.
Message The error message string specified in message.

The TypedDataSetGeneratorException class indicates that a conflict occurred while an attempt is being made to generate a typed dataset class.

Applies to

TypedDataSetGeneratorException(SerializationInfo, StreamingContext)

Initializes a new instance of the TypedDataSetGeneratorException class, using the specified serialization information and streaming context.

protected:
 TypedDataSetGeneratorException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TypedDataSetGeneratorException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.Design.TypedDataSetGeneratorException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.Design.TypedDataSetGeneratorException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

context
StreamingContext

A StreamingContext structure.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization. The TypedDataSetGeneratorException class indicates that a conflict occurred while an attempt is being made to generate a typed dataset class.

Applies to

TypedDataSetGeneratorException(String, Exception)

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

public:
 TypedDataSetGeneratorException(System::String ^ message, Exception ^ innerException);
public TypedDataSetGeneratorException (string message, Exception innerException);
new System.Data.Design.TypedDataSetGeneratorException : string * Exception -> System.Data.Design.TypedDataSetGeneratorException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

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 into the constructor, or null 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 TypedDataSetGeneratorException.

Property Value
InnerException null.
Message The error message string specified in message.

The TypedDataSetGeneratorException class indicates that a conflict occurred while an attempt is being made to generate a typed dataset class.

Applies to