TypedDataSetGeneratorException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 TypedDataSetGeneratorException 类的新实例。
重载
TypedDataSetGeneratorException() |
使用说明错误的系统提供的消息初始化 TypedDataSetGeneratorException 类的新实例。 |
TypedDataSetGeneratorException(IList) |
通过传入错误集合初始化 TypedDataSetGeneratorException 类的新实例。 |
TypedDataSetGeneratorException(String) |
使用说明错误的指定消息初始化 TypedDataSetGeneratorException 类的新实例。 |
TypedDataSetGeneratorException(SerializationInfo, StreamingContext) |
使用指定的序列化信息和流上下文初始化 TypedDataSetGeneratorException 类的新实例。 |
TypedDataSetGeneratorException(String, Exception) |
使用指定的字符串和内部异常初始化 TypedDataSetGeneratorException 类的新实例。 |
注解
类 TypedDataSetGeneratorException 指示正在尝试生成类型化数据集类时发生冲突。
TypedDataSetGeneratorException()
使用说明错误的系统提供的消息初始化 TypedDataSetGeneratorException 类的新实例。
public:
TypedDataSetGeneratorException();
public TypedDataSetGeneratorException ();
Public Sub New ()
注解
此构造函数将新实例的 属性初始化 Message 为系统提供的消息,该消息描述错误,例如“DefaultMessageDisplayedByParameterlessCtorWriterMustSupply”,此消息将考虑当前系统区域性。
下表显示了 InsufficientMemoryException 实例的初始属性值。
properties | 值 |
---|---|
InnerException | null . |
Message | 本地化的错误消息字符串。 |
类 TypedDataSetGeneratorException 指示在尝试生成类型化数据集类时发生冲突。
适用于
TypedDataSetGeneratorException(IList)
通过传入错误集合初始化 TypedDataSetGeneratorException 类的新实例。
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)
参数
注解
类 TypedDataSetGeneratorException 指示在尝试生成类型化数据集类时发生冲突。
适用于
TypedDataSetGeneratorException(String)
使用说明错误的指定消息初始化 TypedDataSetGeneratorException 类的新实例。
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)
参数
- message
- String
描述该异常的消息。 此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。
注解
下表显示了 TypedDataSetGeneratorException 实例的初始属性值。
properties | 值 |
---|---|
InnerException | null . |
Message | message 中指定的错误消息字符串。 |
类 TypedDataSetGeneratorException 指示在尝试生成类型化数据集类时发生冲突。
适用于
TypedDataSetGeneratorException(SerializationInfo, StreamingContext)
使用指定的序列化信息和流上下文初始化 TypedDataSetGeneratorException 类的新实例。
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)
参数
- info
- SerializationInfo
- context
- StreamingContext
StreamingContext 结构。
注解
在反序列化期间调用此构造函数以重新构造在流上传输的异常对象。 有关详细信息,请参阅 XML 和 SOAP 序列化。 类 TypedDataSetGeneratorException 指示在尝试生成类型化数据集类时发生冲突。
适用于
TypedDataSetGeneratorException(String, Exception)
使用指定的字符串和内部异常初始化 TypedDataSetGeneratorException 类的新实例。
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)
参数
- message
- String
描述该异常的消息。 此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。
- innerException
- Exception
导致当前异常的异常。 如果 innerException
参数不为 null
,则当前异常将在处理内部异常的 catch
块中引发。
注解
因前一个异常而直接引发的异常应在 InnerException 属性中包含对前一个异常的引用。 InnerException 属性将返回传递给构造函数的同一值;如果 InnerException 属性不向构造函数提供内部异常值,则返回 null
。
下表显示了 TypedDataSetGeneratorException 实例的初始属性值。
properties | 值 |
---|---|
InnerException | null . |
Message | message 中指定的错误消息字符串。 |
类 TypedDataSetGeneratorException 指示在尝试生成类型化数据集类时发生冲突。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈