Share via


TeamFoundationServiceException 类

从 Team Foundation 的代码的所有自定义异常的基类引发的。

继承层次结构

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.TeamFoundation.TeamFoundationServerException
        Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceException
          更多...

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
<SerializableAttribute> _
Public Class TeamFoundationServiceException _
    Inherits TeamFoundationServerException _
    Implements ISerializable
[SerializableAttribute]
public class TeamFoundationServiceException : TeamFoundationServerException, 
    ISerializable

TeamFoundationServiceException 类型公开以下成员。

构造函数

  名称 说明
公共方法 TeamFoundationServiceException() NO- arg 交由基类的构造函数。
公共方法 TeamFoundationServiceException(Int32) 初始化使用指定的错误消息的异常。
公共方法 TeamFoundationServiceException(String) 初始化使用指定的错误消息的异常。
公共方法 TeamFoundationServiceException(Int32, Boolean) 初始化使用指定的错误消息的异常。
受保护的方法 TeamFoundationServiceException(SerializationInfo, StreamingContext) 初始化从序列化数据的异常。
公共方法 TeamFoundationServiceException(String, Exception) 初始化引发此异常引发与指定的错误消息的异常和内部异常。
公共方法 TeamFoundationServiceException(String, Int32) 初始化引发此异常引发与指定的错误消息的异常和内部异常。
公共方法 TeamFoundationServiceException(String, Int32, Boolean) 初始化引发此异常引发与指定的错误消息的异常和内部异常。
公共方法 TeamFoundationServiceException(String, Int32, Exception) 初始化引发此异常引发与指定的错误消息的异常和内部异常。
公共方法 TeamFoundationServiceException(String, Int32, Boolean, Exception) 初始化引发此异常引发与指定的错误消息的异常和内部异常。

页首

属性

  名称 说明
公共属性 Data 获取关联的数据具有此异常,因此,如果有的话)。 (继承自 TeamFoundationServerException。)
公共属性 ErrorCode 用户定义的错误代码。
公共属性 EventId 报告事件的 ID 异常是否为事件日志进行标记。
公共属性 FaultCode 指示异常的 SOAP 错误代码。
公共属性 HelpLink 获取或设置指向此异常所关联帮助文件的链接。 (继承自 Exception。)
公共属性 HResult 获取或设置 HRESULT(一个分配给特定异常的编码数字值)。 (继承自 Exception。)
公共属性 InnerException 获取导致当前异常的 Exception 实例。 (继承自 Exception。)
公共属性 IsRemoteException 获取描述的标志此异常是由服务器引发并由客户端接收。 (继承自 TeamFoundationServerException。)
公共属性 LogException 指示是否应记录此异常实例。
公共属性 LogLevel 使用的事件日志项类型,在记录异常。
公共属性 Message 获取描述当前异常的消息。 (继承自 Exception。)
公共属性 ReportException 指示是否应通过 dr 报告异常。Watson。
公共属性 RequestContext RequestContext 关联具有此异常。这可能为 null。
公共属性 Source 获取或设置导致错误的应用程序或对象的名称。 (继承自 Exception。)
公共属性 StackTrace 获取调用堆栈上直接帧的字符串表示形式。 (继承自 Exception。)
公共属性 TargetSite 获取引发当前异常的方法。 (继承自 Exception。)

页首

方法

  名称 说明
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法静态成员 ExtractEnumName
公共方法静态成员 ExtractInt 分析 SqlError 消息并提取键标识的字段。
公共方法静态成员 ExtractInts 分析 SqlError 消息并提取键标识的字段。
公共方法静态成员 ExtractString 分析 SqlError 消息并提取键标识的字段。
公共方法静态成员 ExtractStrings 分析 SqlError 消息并提取键标识的字段。
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetBaseException 当在派生类中重写时,返回 Exception,它是一个或多个并发的异常的根源。 (继承自 Exception。)
受保护的方法 GetExceptionProperties 检索序列化到客户端异常的属性。属性将添加为 SOAP 详细信息节点名为“属性的子级”。每个属性编写的,以便节点的名称是属性名称,并且该元素的文本子项是值。“type”属性在反序列化包含在属性节点帮助。
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetObjectData 安全关键。序列化此异常选件类存储的其他属性。 (重写 Exception.GetObjectData(SerializationInfo, StreamingContext)。)
公共方法 GetProperty<T> (继承自 TeamFoundationServerException。)
公共方法 GetType 获取当前实例的运行时类型。 (继承自 Exception。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 创建并返回当前异常的字符串表示形式。 (继承自 Exception。)

页首

事件

  名称 说明
受保护的事件 SerializeObjectState 在序列化异常,以创建包含有关异常的序列化数据的异常状态对象时发生。 (继承自 Exception。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.TeamFoundation.Framework.Server 命名空间

继承层次结构

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.TeamFoundation.TeamFoundationServerException
        Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceException
          Microsoft.TeamFoundation.Build.Server.BuildServerException
          Microsoft.TeamFoundation.Framework.Server.AcquireDatabasePartitionException
          Microsoft.TeamFoundation.Framework.Server.Alm.DownloadTicketValidationException
          Microsoft.TeamFoundation.Framework.Server.Alm.InvalidRegistryException
          Microsoft.TeamFoundation.Framework.Server.Alm.ParseException
          Microsoft.TeamFoundation.Framework.Server.Alm.ProxyException
          Microsoft.TeamFoundation.Framework.Server.Alm.StrongBoxException
          Microsoft.TeamFoundation.Framework.Server.Alm.TeamFoundationMessageQueueException
          Microsoft.TeamFoundation.Framework.Server.AnalysisServiceConnectionException
          Microsoft.TeamFoundation.Framework.Server.AttachCollectionException
          Microsoft.TeamFoundation.Framework.Server.BadChecksumException
          Microsoft.TeamFoundation.Framework.Server.BasicAuthPasswordChangeLimitException
          Microsoft.TeamFoundation.Framework.Server.BlobProviderConfigurationException
          Microsoft.TeamFoundation.Framework.Server.CannotUpdateDefaultCollectionException
          Microsoft.TeamFoundation.Framework.Server.CleanupJobInProgressException
          Microsoft.TeamFoundation.Framework.Server.CollationException
          Microsoft.TeamFoundation.Framework.Server.CollectionDoesNotExistException
          Microsoft.TeamFoundation.Framework.Server.CollectionMisconfiguredException
          Microsoft.TeamFoundation.Framework.Server.CollectionPropertyException
          Microsoft.TeamFoundation.Framework.Server.DatabaseAlreadyRegisteredException
          Microsoft.TeamFoundation.Framework.Server.DatabaseCategoryNotRegisteredException
          Microsoft.TeamFoundation.Framework.Server.DatabaseConfigurationException
          Microsoft.TeamFoundation.Framework.Server.DatabaseConnectionException
          Microsoft.TeamFoundation.Framework.Server.DatabaseFullException
          Microsoft.TeamFoundation.Framework.Server.DatabaseInstanceException
          Microsoft.TeamFoundation.Framework.Server.DatabaseNotFoundException
          Microsoft.TeamFoundation.Framework.Server.DatabaseOperationCanceledException
          Microsoft.TeamFoundation.Framework.Server.DatabaseOperationTimeoutException
          Microsoft.TeamFoundation.Framework.Server.DatabasePartitionCannotBeDeletedException
          Microsoft.TeamFoundation.Framework.Server.DatabasePartitionNotFoundException
          Microsoft.TeamFoundation.Framework.Server.DatabasePoolAlreadyExistsException
          Microsoft.TeamFoundation.Framework.Server.DatabasePoolCannotBeDeletedException
          Microsoft.TeamFoundation.Framework.Server.DatabasePoolFullException
          Microsoft.TeamFoundation.Framework.Server.DatabasePoolNotFoundException
          Microsoft.TeamFoundation.Framework.Server.DatabaseRuntimeException
          Microsoft.TeamFoundation.Framework.Server.DatabaseSchemaException
          Microsoft.TeamFoundation.Framework.Server.DataTierNotFoundException
          Microsoft.TeamFoundation.Framework.Server.DateTimeShiftDetectedException
          Microsoft.TeamFoundation.Framework.Server.DBExecutingDeadlockException
          Microsoft.TeamFoundation.Framework.Server.DBResultDeadlockException
          Microsoft.TeamFoundation.Framework.Server.DeltaException
          Microsoft.TeamFoundation.Framework.Server.DeltaTooLargeException
          Microsoft.TeamFoundation.Framework.Server.DuplicateFeatureException
          Microsoft.TeamFoundation.Framework.Server.DuplicateFileNameException
          Microsoft.TeamFoundation.Framework.Server.DuplicateTagNameException
          Microsoft.TeamFoundation.Framework.Server.EnumerationNoneArgumentException
          Microsoft.TeamFoundation.Framework.Server.EventException
          Microsoft.TeamFoundation.Framework.Server.ExtensibleServiceTypeNotRegisteredException
          Microsoft.TeamFoundation.Framework.Server.ExtensibleServiceTypeNotValidException
          Microsoft.TeamFoundation.Framework.Server.FailedToAcquireServicingLockException
          Microsoft.TeamFoundation.Framework.Server.FileAlreadyUploadedException
          Microsoft.TeamFoundation.Framework.Server.FileContainerException
          Microsoft.TeamFoundation.Framework.Server.FileIdNotFoundException
          Microsoft.TeamFoundation.Framework.Server.HostManagementException
          Microsoft.TeamFoundation.Framework.Server.HttpComponentResponseException
          Microsoft.TeamFoundation.Framework.Server.IncompatibleCompressionFormatException
          Microsoft.TeamFoundation.Framework.Server.IncompleteUploadException
          Microsoft.TeamFoundation.Framework.Server.IncorrectSizeException
          Microsoft.TeamFoundation.Framework.Server.InvalidAccessException
          Microsoft.TeamFoundation.Framework.Server.InvalidFeatureDescriptionException
          Microsoft.TeamFoundation.Framework.Server.InvalidFeatureNameException
          Microsoft.TeamFoundation.Framework.Server.InvalidLobParameterException
          Microsoft.TeamFoundation.Framework.Server.InvalidParentHostException
          Microsoft.TeamFoundation.Framework.Server.InvalidQuotaException
          Microsoft.TeamFoundation.Framework.Server.InvalidRequestContextHostException
          Microsoft.TeamFoundation.Framework.Server.InvalidTagArtifactKindException
          Microsoft.TeamFoundation.Framework.Server.InvalidTagArtifactTypeException
          Microsoft.TeamFoundation.Framework.Server.InvalidTagNameException
          Microsoft.TeamFoundation.Framework.Server.JobAgentException
          Microsoft.TeamFoundation.Framework.Server.LockTimeoutException
          Microsoft.TeamFoundation.Framework.Server.MessageBusAlreadySubscribingException
          Microsoft.TeamFoundation.Framework.Server.MessageBusConfigurationException
          Microsoft.TeamFoundation.Framework.Server.MessageBusNotFoundException
          Microsoft.TeamFoundation.Framework.Server.MissingFeatureException
          Microsoft.TeamFoundation.Framework.Server.MissingQuotaDefinitionException
          Microsoft.TeamFoundation.Framework.Server.MultiplePartitionsNotSupportedException
          Microsoft.TeamFoundation.Framework.Server.PropertyServiceException
          Microsoft.TeamFoundation.Framework.Server.QueryExpressionException
          Microsoft.TeamFoundation.Framework.Server.RedirectionException
          Microsoft.TeamFoundation.Framework.Server.RegistryPathException
          Microsoft.TeamFoundation.Framework.Server.RegistryPathPatternException
          Microsoft.TeamFoundation.Framework.Server.RequestCanceledException
          Microsoft.TeamFoundation.Framework.Server.RequestFilterException
          Microsoft.TeamFoundation.Framework.Server.ResourceStreamNotFoundException
          Microsoft.TeamFoundation.Framework.Server.ServiceLevelException
          Microsoft.TeamFoundation.Framework.Server.ServicingDisabledException
          Microsoft.TeamFoundation.Framework.Server.ServicingValidationException
          Microsoft.TeamFoundation.Framework.Server.SqlAzureException
          Microsoft.TeamFoundation.Framework.Server.StepPerformerNotFoundException
          Microsoft.TeamFoundation.Framework.Server.StreamingCollectionUnsupportedOperationException
          Microsoft.TeamFoundation.Framework.Server.TagDefinitionNotFoundException
          Microsoft.TeamFoundation.Framework.Server.TagException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationAccessControlException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationCatalogServiceException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseCopyException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseSplitException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationExtensionNotFoundException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationIdentityServiceException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationInvalidCertificateException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobServiceException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationLocationServiceException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationLockException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationOAuthServiceException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationProcessStillRunningException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationProfileServiceException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationResourceManagementServiceException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationSecurityServiceException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationServicingException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationValidationException
          Microsoft.TeamFoundation.Framework.Server.TooManyItemsException
          Microsoft.TeamFoundation.Framework.Server.UnexpectedDatabaseResultException
          Microsoft.TeamFoundation.Framework.Server.UnexpectedHostTypeException
          Microsoft.TeamFoundation.Framework.Server.UnknownMigrationOwnerException
          Microsoft.TeamFoundation.Framework.Server.VirtualPathMappingException
          Microsoft.TeamFoundation.Framework.Server.VirtualPathsConflictException
          Microsoft.TeamFoundation.Server.AuthorizationSubsystemServiceException
          Microsoft.TeamFoundation.Server.CommonStructureSubsystemServiceException
          Microsoft.TeamFoundation.Server.GroupSecuritySubsystemServiceException
          Microsoft.TeamFoundation.Server.SyncSubsystemServiceException
          Microsoft.TeamFoundation.VersionControl.Server.ServerException
          Microsoft.TeamFoundation.Warehouse.WarehouseException
          Microsoft.VisualStudio.Services.Account.AccountException