IErrorCollectionService 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當你需要捕捉該元件提出的所有錯誤和警告時,它會從資料流元件中擷取事件,而非只收到最後一個錯誤或警告。
public interface class IErrorCollectionService
public interface IErrorCollectionService
type IErrorCollectionService = interface
Public Interface IErrorCollectionService
方法
| 名稱 | Description |
|---|---|
| ClearErrors() |
清除錯誤快取。 |
| GetErrorMessage() |
回傳一個包含合併錯誤訊息的字串,包含錯誤訊息、元件及子元件,對每個錯誤皆有回報。 |
| GetErrorMessage(Boolean) |
回傳包含錯誤訊息的字串。 |
| GetErrors() |
擷取錯誤清單並儲存在 ICollection 中。 |
| HasErrors(TraceLevel) |
顯示催收服務是否有錯誤。 |