Condividi tramite


ValidationContext.CurrentViolations Property

Gets the collection of validation messages for the validation context.

Namespace:  Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Dichiarazione
Public ReadOnly Property CurrentViolations As ReadOnlyCollection(Of ValidationMessage)
    Get
public ReadOnlyCollection<ValidationMessage> CurrentViolations { get; }
public:
property ReadOnlyCollection<ValidationMessage^>^ CurrentViolations {
    ReadOnlyCollection<ValidationMessage^>^ get ();
}
member CurrentViolations : ReadOnlyCollection<ValidationMessage>
function get CurrentViolations () : ReadOnlyCollection<ValidationMessage>

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ValidationMessage>
Returns a read-only collection of LogMessage objects.

.NET Framework Security

See Also

Reference

ValidationContext Class

Microsoft.VisualStudio.Modeling.Validation Namespace