为 Microsoft.Data.Schema 命令空间中的所有异常提供基类。 这包括该命名空间所含的子命名空间。
继承层次结构
System.Object
  System.Exception
    Microsoft.Data.Schema.DataSchemaException
      更多...
命名空间:  Microsoft.Data.Schema
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
<SerializableAttribute> _
<CLSCompliantAttribute(True)> _
Public Class DataSchemaException _
    Inherits Exception
[SerializableAttribute]
[CLSCompliantAttribute(true)]
public class DataSchemaException : Exception
[SerializableAttribute]
[CLSCompliantAttribute(true)]
public ref class DataSchemaException : public Exception
[<SerializableAttribute>]
[<CLSCompliantAttribute(true)>]
type DataSchemaException =  
    class
        inherit Exception
    end
public class DataSchemaException extends Exception
DataSchemaException 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
| .gif) | DataSchemaException() | 创建 DataSchemaException 类的新实例。 | 
| .gif) | DataSchemaException(String) | 使用提供的消息创建 DataSchemaException 类的新实例。 | 
| .gif) | DataSchemaException(SerializationInfo, StreamingContext) | 使用提供的信息和上下文创建 DataSchemaException 类的新实例。 | 
| .gif) | DataSchemaException(String, Exception) | 使用提供的消息和内部异常创建 DataSchemaException 类的新实例。 | 
页首
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | Data | 获取一个提供用户定义的其他异常信息的键/值对的集合。 (继承自 Exception。) | 
| .gif) | HelpLink | 获取或设置指向此异常所关联帮助文件的链接。 (继承自 Exception。) | 
| .gif) | HResult | 获取或设置 HRESULT,它是分配给特定异常的编码数值。 (继承自 Exception。) | 
| .gif) | InnerException | 获取导致当前异常的 Exception 实例。 (继承自 Exception。) | 
| .gif) | Message | 获取描述当前异常的消息。 (继承自 Exception。) | 
| .gif) | Source | 获取或设置导致错误的应用程序或对象的名称。 (继承自 Exception。) | 
| .gif) | StackTrace | 获取调用堆栈上直接帧的字符串表示形式。 (继承自 Exception。) | 
| .gif) | TargetSite | 获取引发当前异常的方法。 (继承自 Exception。) | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) | 
| .gif) | Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) | 
| .gif) | GetBaseException | 当在派生类中重写时,返回 Exception,它是一个或多个并发的异常的根源。 (继承自 Exception。) | 
| .gif) | GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) | 
| .gif) | GetObjectData | 安全关键。当在派生类中重写时,用关于异常的信息设置 SerializationInfo。 (继承自 Exception。) | 
| .gif) | GetType | 获取当前实例的运行时类型。 (继承自 Exception。) | 
| .gif) | MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) | 
| .gif) | ToString | 创建并返回当前异常的字符串表示形式。 (继承自 Exception。) | 
页首
事件
| 名称 | 说明 | |
|---|---|---|
| .gif) | SerializeObjectState | 在序列化异常,以创建包含有关异常的序列化数据的异常状态对象时发生。 (继承自 Exception。) | 
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
继承层次结构
System.Object
  System.Exception
    Microsoft.Data.Schema.DataSchemaException
      Microsoft.Data.Schema.Build.DeploymentFailedException
      Microsoft.Data.Schema.Extensibility.ExtensibilityException
      Microsoft.Data.Schema.Extensibility.InvalidConnectionStringException
      Microsoft.Data.Schema.SchemaModel.DataSchemaModelControllerException
      Microsoft.Data.Schema.SchemaModel.DataSchemaModelException
      Microsoft.Data.Schema.SchemaModel.ModelComparisonException
      Microsoft.Data.Schema.SchemaModel.ModelException
      Microsoft.Data.Schema.SchemaModel.ModelInstantiationException
      Microsoft.Data.Schema.SchemaModel.ModelPersistenceException
      Microsoft.Data.Schema.SchemaModel.ModelRegistrationException
      Microsoft.Data.Schema.SchemaModel.ModelSerializationException
      Microsoft.Data.Schema.SchemaModel.ReverseEngineerException
      Microsoft.Data.Schema.SchemaModel.ScriptCacheException
      Microsoft.Data.Schema.SchemaModel.ScriptDomGeneratorException
      Microsoft.Data.Schema.SchemaModel.Translation.ModelTranslatorException
      Microsoft.Data.Schema.Sql.SchemaModel.SqlModelBuilderException
      Microsoft.Data.Schema.StaticCodeAnalysis.DataRuleException
      Microsoft.Data.Schema.Tools.DataGenerator.GeneratorUserException
      Microsoft.Data.Schema.Tools.DataGenerator.InputValidationException
      Microsoft.VisualStudio.Data.Schema.Package.Project.DatabaseProjectPropertySetFailedException
      Microsoft.VisualStudio.Data.Schema.Package.Project.DatabaseProjectUpgradeException