ErrorManager Class
Manages the errors that are listed in the Error List window of Visual Studio.
Inheritance Hierarchy
System.Object
Microsoft.Data.Schema.ErrorManager
Namespace: Microsoft.Data.Schema
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class ErrorManager _
Implements IDisposable, ISerializable
[SerializableAttribute]
public sealed class ErrorManager : IDisposable,
ISerializable
[SerializableAttribute]
public ref class ErrorManager sealed : IDisposable,
ISerializable
[<Sealed>]
[<SerializableAttribute>]
type ErrorManager =
class
interface IDisposable
interface ISerializable
end
public final class ErrorManager implements IDisposable, ISerializable
The ErrorManager type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
ErrorManager | Initializes a new instance of the ErrorManager class. |
Top
Properties
Name | Description | |
---|---|---|
![]() ![]() |
BuildCategory | Gets the object that represents the build category. |
![]() ![]() |
DefaultCategory | Gets the object that represents the default category. |
![]() ![]() |
DeployCategory | Gets the object that represents the deploy category. |
![]() ![]() |
ExternalsResolutionCategory | Gets the object that represents the resolution category. |
![]() ![]() |
ModelCategory | Gets the object that represents the model category. |
![]() ![]() |
ProjectPropertiesCategory | Gets the object that represents the project properties category. |
![]() ![]() |
ValidationAtBuildCategory | Gets the object that represents the validation category. |
![]() ![]() |
ValidationOnIdleCategory | Gets the object that represents the validation on idle category. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Add(DataSchemaError, Object) | Adds the provided DataSchemaError object to the Error List window of Visual Studio by using the specified category. |
![]() |
Add(IList<DataSchemaError>, Object) | Adds a collection of DataSchemaError objects to the Error List window of Visual Studio in the specified category. |
![]() |
Add(DataSchemaError, Object, Boolean) | |
![]() |
Add(IList<DataSchemaError>, Object, Boolean) | |
![]() ![]() |
AddPersistedCategory | Designates that errors added to the Errors List window of Visual Studio, together with the provided category, will be persisted. |
![]() |
ClearCategory | Removes all errors that have the provided category from the Error List window of Visual Studio. |
![]() |
Dispose | Releases all resources that are used by the current instance of the ErrorManager class. |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
Find(String, Object) | Retrieves a list of all DataSchemaError objects that belong to the specified category and document. |
![]() |
Find(Predicate<DataSchemaError>, Object) | |
![]() |
GetAllCategories | Retrieves a list of all categories that exist. |
![]() |
GetAllErrors() | Retrieves a list of all errors in the ErrorManager. |
![]() |
GetAllErrors(Object) | Retrieves a list of all errors in the ErrorManager that belong to the specified category. |
![]() |
GetCategories | |
![]() |
GetErrorCounts | Retrieves the counts of errors that belong to the provided category. Counts are returned for several levels of severity. |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetObjectData | Initializes a new instance of the ErrorManager class. |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
MergeWith | Copies the errors from another ErrorManager object. |
![]() |
Remove(String, Object) | Removes the Error List window of Visual Studio all DataSchemaError objects from that share the provided document file name and category. |
![]() |
Remove(DataSchemaError, Object) | Removes the specified DataSchemaError object from the Error List window of Visual Studio. |
![]() |
Remove(IList<DataSchemaError>, Object) | Removes the specified DataSchemaError objects from the Error List window of Visual Studio. |
![]() |
Remove(Predicate<DataSchemaError>, Object) | |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
UpdateErrorsDocumentName | Changes the name of the document in the Document property of all DataSchemaError objects in the Error List window of Visual Studio that belong to the specified category. |
Top
Events
Name | Description | |
---|---|---|
![]() |
Disposed | Occurs when the ErrorManager has been disposed. |
![]() |
ErrorManagerRefreshed | Occurs when the data in the ErrorManager has been refreshed. |
![]() |
ErrorsChanged | Occurs when one or more errors have been added or removed from the Error List window of Visual Studio. |
Top
Remarks
All DataSchemaError objects are added and removed from the Error List window through this class.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Data.Schema Namespace