ServerItemException 類別

採用單一伺服器項目做為引數的所有例外狀況的基底類別。 這是 90%,其順序便一提

繼承階層架構

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.VisualStudio.Services.Common.VssException
        Microsoft.TeamFoundation.TeamFoundationServerException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceException
            Microsoft.TeamFoundation.VersionControl.Server.ServerException
              Microsoft.TeamFoundation.VersionControl.Server.ServerItemException
                其他...

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
<SerializableAttribute> _
Public MustInherit Class ServerItemException _
    Inherits ServerException
[SerializableAttribute]
public abstract class ServerItemException : ServerException

ServerItemException 類型會公開下列成員。

建構函式

  名稱 描述
受保護的方法 ServerItemException(String)
受保護的方法 ServerItemException(String, String)
受保護的方法 ServerItemException(String, String, String)

回頁首

屬性

  名稱 描述
公用屬性 Data 取得資料與這個例外狀況,,如果有的話。 (繼承自 TeamFoundationServerException)。
公用屬性 ErrorCode (繼承自 VssException)。
公用屬性 EventId (繼承自 VssException)。
公用屬性 FaultCode 表示例外狀況的 SOAP 錯誤碼。 (繼承自 TeamFoundationServiceException)。
公用屬性 HelpLink 取得或設定與這個例外狀況相關聯說明檔的連結。 (繼承自 Exception)。
受保護的屬性 HResult 取得或設定 HRESULT,它是指派給特定例外狀況的編碼數值。 (繼承自 Exception)。
公用屬性 InnerException 取得造成目前例外狀況的 Exception 執行個體。 (繼承自 Exception)。
公用屬性 IsRemoteException 取得描述的旗標這個例外狀況是否由伺服器擲回並由用戶端接收。 (繼承自 TeamFoundationServerException)。
公用屬性 LogException (繼承自 VssException)。
公用屬性 LogLevel (繼承自 VssException)。
公用屬性 Message 取得描述目前例外狀況的訊息。 (繼承自 Exception)。
公用屬性 ReportException (繼承自 VssException)。
公用屬性 RequestContext RequestContext 與這個例外狀況。這可能是 Null。 (繼承自 TeamFoundationServiceException)。
公用屬性 ServerItem
公用屬性 Source 取得或設定造成錯誤的應用程式或物件的名稱。 (繼承自 Exception)。
公用屬性 StackTrace 取得呼叫堆疊上之立即框架的字串表示。 (繼承自 Exception)。
公用屬性 TargetSite 取得擲回目前例外狀況的方法。 (繼承自 Exception)。

回頁首

方法

  名稱 描述
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetBaseException 在衍生類別中覆寫時,傳回一或多個後續的例外狀況的根本原因 Exception。 (繼承自 Exception)。
受保護的方法 GetExceptionProperties 擷取應序列化到用戶端例外狀況的屬性。屬性會當做 SOAP 詳細資料節點名稱「屬性的子系」。每個屬性被覆寫,以便節點的名稱是屬性名稱,而這個項目的文字子系是值。「type」屬性在還原序列化包含以屬性節點的說明。 (繼承自 TeamFoundationServiceException)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetObjectData 安全性關鍵。在這個例外狀況類別儲存額外的屬性。 (繼承自 TeamFoundationServiceException)。
公用方法 GetType 取得目前執行個體的執行階段型別。 (繼承自 Exception)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 SetFailureInfo (覆寫 ServerException.SetFailureInfo(Failure)。)
公用方法 ToString 建立並傳回目前例外狀況的字串表示。 (繼承自 Exception)。

回頁首

事件

  名稱 描述
受保護的事件 SerializeObjectState 發生於已將例外狀況序列化來建立例外狀況狀態物件時,這個物件包含例外狀況的相關序列化資料。 (繼承自 Exception)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.VersionControl.Server 命名空間

繼承階層架構

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.VisualStudio.Services.Common.VssException
        Microsoft.TeamFoundation.TeamFoundationServerException
          Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceException
            Microsoft.TeamFoundation.VersionControl.Server.ServerException
              Microsoft.TeamFoundation.VersionControl.Server.ServerItemException
                Microsoft.TeamFoundation.VersionControl.Server.BranchSourceNotCommittedException
                Microsoft.TeamFoundation.VersionControl.Server.CannotBranchDestroyedContentException
                Microsoft.TeamFoundation.VersionControl.Server.CannotCheckinDependantRenameException
                Microsoft.TeamFoundation.VersionControl.Server.CannotCheckinPartialUndeleteException
                Microsoft.TeamFoundation.VersionControl.Server.CannotCheckinRenameAsPendingAddConflictsException
                Microsoft.TeamFoundation.VersionControl.Server.CannotCheckinRenameDueToChildConflictException
                Microsoft.TeamFoundation.VersionControl.Server.CannotCreateParentFolderException
                Microsoft.TeamFoundation.VersionControl.Server.CannotDeleteTeamProjectFolderException
                Microsoft.TeamFoundation.VersionControl.Server.CannotDestroyRootException
                Microsoft.TeamFoundation.VersionControl.Server.CannotLockException
                Microsoft.TeamFoundation.VersionControl.Server.CannotMergeDestroyedFileException
                Microsoft.TeamFoundation.VersionControl.Server.CannotMergeWithExistingConflictException
                Microsoft.TeamFoundation.VersionControl.Server.CannotPendChangeOnDestroyedFileException
                Microsoft.TeamFoundation.VersionControl.Server.CannotPendEditOnDeletedFileWithGetLatestException
                Microsoft.TeamFoundation.VersionControl.Server.CannotPendEditOnRenamedFileWithGetLatestException
                Microsoft.TeamFoundation.VersionControl.Server.CannotSetMappingOnRenameException
                Microsoft.TeamFoundation.VersionControl.Server.CannotShelvePartialUndeleteException
                Microsoft.TeamFoundation.VersionControl.Server.ChangeAlreadyPendingException
                Microsoft.TeamFoundation.VersionControl.Server.ContentRequiredException
                Microsoft.TeamFoundation.VersionControl.Server.DuplicateItemsInCheckInRequestException
                Microsoft.TeamFoundation.VersionControl.Server.DuplicateServerItemException
                Microsoft.TeamFoundation.VersionControl.Server.EmptyCheckInException
                Microsoft.TeamFoundation.VersionControl.Server.ExistingParentFileException
                Microsoft.TeamFoundation.VersionControl.Server.FolderContentException
                Microsoft.TeamFoundation.VersionControl.Server.FolderEditException
                Microsoft.TeamFoundation.VersionControl.Server.IllegalServerItemException
                Microsoft.TeamFoundation.VersionControl.Server.IncompatibleChangeException
                Microsoft.TeamFoundation.VersionControl.Server.InvalidProjectPendingChangeException
                Microsoft.TeamFoundation.VersionControl.Server.ItemDeletedException
                Microsoft.TeamFoundation.VersionControl.Server.ItemExistsException
                Microsoft.TeamFoundation.VersionControl.Server.ItemLockedException
                Microsoft.TeamFoundation.VersionControl.Server.ItemNotCheckedOutException
                Microsoft.TeamFoundation.VersionControl.Server.ItemNotFoundException
                Microsoft.TeamFoundation.VersionControl.Server.LabelDuplicateItemException
                Microsoft.TeamFoundation.VersionControl.Server.LabelPendingAddException
                Microsoft.TeamFoundation.VersionControl.Server.LatestVersionDeletedException
                Microsoft.TeamFoundation.VersionControl.Server.LocalItemOutOfDateException
                Microsoft.TeamFoundation.VersionControl.Server.LocalItemRequiredException
                Microsoft.TeamFoundation.VersionControl.Server.LocalVersionNotFoundException
                Microsoft.TeamFoundation.VersionControl.Server.MappingException
                Microsoft.TeamFoundation.VersionControl.Server.MergeConflictExistsException
                Microsoft.TeamFoundation.VersionControl.Server.MergeDoNotHaveTargetLocallyException
                Microsoft.TeamFoundation.VersionControl.Server.MergeTargetCloakedException
                Microsoft.TeamFoundation.VersionControl.Server.MergeTargetNotMappedException
                Microsoft.TeamFoundation.VersionControl.Server.MissingParentIsRenameOrUndeleteException
                Microsoft.TeamFoundation.VersionControl.Server.NoLockExistsException
                Microsoft.TeamFoundation.VersionControl.Server.NotAllowedOnFolderException
                Microsoft.TeamFoundation.VersionControl.Server.PendingChangeMergeConflictExistsException
                Microsoft.TeamFoundation.VersionControl.Server.PendingChildException
                Microsoft.TeamFoundation.VersionControl.Server.PendingDeleteConflictChangeException
                Microsoft.TeamFoundation.VersionControl.Server.PendingLocalVersionMismatchException
                Microsoft.TeamFoundation.VersionControl.Server.PendingParentDeleteException
                Microsoft.TeamFoundation.VersionControl.Server.RenameWorkingFolderException
                Microsoft.TeamFoundation.VersionControl.Server.ServerItemRequiredException
                Microsoft.TeamFoundation.VersionControl.Server.ShelvedChangeNotFoundException
                Microsoft.TeamFoundation.VersionControl.Server.TargetCloakedException
                Microsoft.TeamFoundation.VersionControl.Server.TargetHasPendingChangeException
                Microsoft.TeamFoundation.VersionControl.Server.TrackMergesExceededMaxBranchesLimitException
                Microsoft.TeamFoundation.VersionControl.Server.VersionConflictException
                Microsoft.TeamFoundation.VersionControl.Server.WorkingFolderCreationException
                Microsoft.TeamFoundation.VersionControl.Server.WorkingFolderException
                Microsoft.TeamFoundation.VersionControl.Server.WorkspaceRequiresComputerNameException