Metoda VsValidationContext.ConstructValidationMessage —
Metoda overrideable Zezwalaj na klasie pochodnej do tworzenia wiadomości.
Przestrzeń nazw: Microsoft.VisualStudio.Modeling.Shell
Zestaw: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Składnia
'Deklaracja
Protected Overrides Function ConstructValidationMessage ( _
description As String, _
code As String, _
violationType As ViolationType, _
ParamArray elements As ModelElement() _
) As ValidationMessage
protected override ValidationMessage ConstructValidationMessage(
string description,
string code,
ViolationType violationType,
params ModelElement[] elements
)
Parametry
- description
Typ: System.String
- code
Typ: System.String
- violationType
Typ: Microsoft.VisualStudio.Modeling.Validation.ViolationType
- elements
Typ: array<Microsoft.VisualStudio.Modeling.ModelElement[]
Wartość zwracana
Typ: Microsoft.VisualStudio.Modeling.Validation.ValidationMessage
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..