VsValidationContext Class

 

Context specific to the VS Shell. It derives from ValidationContext.

Namespace:   Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

System::Object
  Microsoft.VisualStudio.Modeling.Validation::ValidationContext
    Microsoft.VisualStudio.Modeling.Shell::VsValidationContext

public ref class VsValidationContext : ValidationContext

NameDescription
System_CAPS_pubpropertyCategories

Gets the validation categories for this validation context.(Inherited from ValidationContext.)

System_CAPS_pubpropertyCurrentViolations

Gets the collection of validation messages for the validation context.(Inherited from ValidationContext.)

System_CAPS_pubpropertyCustomCategories

Gets the custom validation strings for the validation context.(Inherited from ValidationContext.)

System_CAPS_pubpropertyModelExplorerToolWindow

Gets the model explorer tool window associated with this validation context.

System_CAPS_pubpropertyServiceProvider

Returns the service associated with this context.

System_CAPS_pubpropertyValidationSubjects

Gets the list of model elements to validate.(Inherited from ValidationContext.)

NameDescription
System_CAPS_protmethodConstructValidationMessage(String^, String^, ViolationType, array<ModelElement^>^)

Overrideable method to allow the derived class to create messages.(Overrides ValidationContext::ConstructValidationMessage(String^, String^, ViolationType, array<ModelElement^>^).)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetCache<T>()

Gets the cache for the specified class.(Inherited from ValidationContext.)

System_CAPS_pubmethodGetCache<T>(String^)

Gets the cache for the specified class.(Inherited from ValidationContext.)

System_CAPS_protmethodGetDiagramNavigationCommands(IList<ModelElement^>^)

Override to supply one or more diagram navigation commands for the referenced elements.

System_CAPS_pubmethodGetDiagramNavigationTargets(ModelElement^)

Get the list of shapes associated with the referenced model elements, that we can target for navigation.

System_CAPS_protmethodGetDiagramNavigationTargetSubstitutes(ModelElement^)

Gets a list of zero-or-more substitute shapes for the given target.

System_CAPS_protmethodGetExplorerNavigationCommand(IList<ModelElement^>^)

Returns a TaskMenuCommand capable of navigating to the appropriate node in the model explorer window for this validation message. If no corresponding node exists in the model explorer, this property returns null.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetNavigationCommands(ValidationMessage^)

Full list of navigation commands for this validation message. Default implementation concatentates the DiagramNavigateCommands with the ExplorerNavigateCommand.

System_CAPS_pubmethodGetNavigationProxyModelElements(ModelElement^)

Returns the substitutes model element for the passed in model element. Consider the case where the *viewed* presentation model element(s) (PELs) represents the model element(s) which are proxies to the actual offending model element reported during the model validation.(Overrides ValidationContext::GetNavigationProxyModelElements(ModelElement^).)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLogError(String^, String^, array<ModelElement^>^)

Creates a validation error and logs a message into the collection that the validation context maintains.(Inherited from ValidationContext.)

System_CAPS_pubmethodLogFatal(String^, String^, array<ModelElement^>^)

Creates a fatal error for validation and logs a message in the validation context.(Inherited from ValidationContext.)

System_CAPS_pubmethodLogMessage(String^, String^, array<ModelElement^>^)

Creates a validation information message and logs it into the collection that the validation context maintains.(Inherited from ValidationContext.)

System_CAPS_pubmethodLogViolation(ViolationType, String^, String^, array<ModelElement^>^)

Creates a validation error, message, or warning.(Inherited from ValidationContext.)

System_CAPS_pubmethodLogWarning(String^, String^, array<ModelElement^>^)

Creates a validation warning and logs the message into the collection that the validation context maintains.(Inherited from ValidationContext.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOnDeleteTask(ValidationTask^)

Override to implement OnDelete behavior for the supplied validation task list item.

System_CAPS_pubmethodOnNavigateToTask(ValidationTask^)

Override to implement OnNavigate behavior for the supplied validation task list item. The default implementation calls DoCommand on the first item in DiagramNavigateCommands, and executes the ExplorerNavigateCommand, if available.

System_CAPS_pubmethodSetCacheValue<T>(String^, T)

Set the cached object associated with the name(Inherited from ValidationContext.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetCacheValue<T>(String^, T)

Returns whether the cached object associated with the name exist or not(Inherited from ValidationContext.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: