Class VsModel
Base class used by all visual studio models.
Inheritance
VsModel
      
      
      
      
      
      
      
      
  Inherited Members
Namespace: CodeFactory.VisualStudio
Assembly: CodeFactory.VisualStudio.dll
Syntax
public abstract class VsModel : IVsModel, IModel<VisualStudioModelType>
  Constructors
| Improve this Doc View SourceVsModel(bool, bool, IReadOnlyList<ModelException<VisualStudioModelType>>, VisualStudioModelType, string)
Constructor for the base class VsModel
Declaration
protected VsModel(bool isLoaded, bool hasErrors, IReadOnlyList<ModelException<VisualStudioModelType>> modelErrors, VisualStudioModelType modelType, string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| bool | isLoaded | Flag that determines if the model is loaded.  | 
      
| bool | hasErrors | Flag that determines if errors occurred while loading the model.  | 
      
| IReadOnlyList<ModelException<VisualStudioModelType>> | modelErrors | The list of errors that occurred if any.  | 
      
| VisualStudioModelType | modelType | The type of visual studio model that is loaded.  | 
      
| string | name | The name of the model.  | 
      
Properties
| Improve this Doc View SourceHasErrors
Flag that determines if this model has errors.
Declaration
public bool HasErrors { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
IsLoaded
Flag that determines if this model was able to load.
Declaration
public bool IsLoaded { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
ModelErrors
List of all errors that occurred in this model.
Declaration
public IReadOnlyList<ModelException<VisualStudioModelType>> ModelErrors { get; }
  Property Value
| Type | Description | 
|---|---|
| IReadOnlyList<ModelException<VisualStudioModelType>> | 
ModelType
Determines the type of model that has been loaded.
Declaration
public VisualStudioModelType ModelType { get; }
  Property Value
| Type | Description | 
|---|---|
| VisualStudioModelType | 
Name
The name of the visual studio model.
Declaration
public string Name { get; }
  Property Value
| Type | Description | 
|---|---|
| string |