Partilhar via


Método ValidationExtensions.LogValidationError

Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (em Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)

Sintaxe

'Declaração
<ExtensionAttribute> _
Public Shared Function LogValidationError ( _
    extension As IValidateArchitectureExtension, _
    graph As Graph, _
    id As String, _
    message As String, _
    errorLevel As GraphErrorLevel, _
    layerOrLayerModelNodeWithError As GraphNode, _
    errorSourceNodes As IEnumerable(Of GraphNode), _
    errorTargetNodes As IEnumerable(Of GraphNode) _
) As GraphNode
public static GraphNode LogValidationError(
    this IValidateArchitectureExtension extension,
    Graph graph,
    string id,
    string message,
    GraphErrorLevel errorLevel,
    GraphNode layerOrLayerModelNodeWithError,
    IEnumerable<GraphNode> errorSourceNodes,
    IEnumerable<GraphNode> errorTargetNodes
)
[ExtensionAttribute]
public:
static GraphNode^ LogValidationError(
    IValidateArchitectureExtension^ extension, 
    Graph^ graph, 
    String^ id, 
    String^ message, 
    GraphErrorLevel errorLevel, 
    GraphNode^ layerOrLayerModelNodeWithError, 
    IEnumerable<GraphNode^>^ errorSourceNodes, 
    IEnumerable<GraphNode^>^ errorTargetNodes
)
static member LogValidationError : 
        extension:IValidateArchitectureExtension * 
        graph:Graph * 
        id:string * 
        message:string * 
        errorLevel:GraphErrorLevel * 
        layerOrLayerModelNodeWithError:GraphNode * 
        errorSourceNodes:IEnumerable<GraphNode> * 
        errorTargetNodes:IEnumerable<GraphNode> -> GraphNode 
public static function LogValidationError(
    extension : IValidateArchitectureExtension, 
    graph : Graph, 
    id : String, 
    message : String, 
    errorLevel : GraphErrorLevel, 
    layerOrLayerModelNodeWithError : GraphNode, 
    errorSourceNodes : IEnumerable<GraphNode>, 
    errorTargetNodes : IEnumerable<GraphNode>
) : GraphNode

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.GraphModel.GraphNode

Observação de uso

No Visual Basic e no C#, você pode chamar esse método como um método de instância em qualquer objeto do tipo IValidateArchitectureExtension. Quando você usar a sintaxe de método de instância para chamar esse método, omita o primeiro parâmetro. Para obter mais informações, consulte Métodos de extensão (Visual Basic) ou Métodos de extensão (guia de programação do C#).

Segurança do .NET Framework

Consulte também

Referência

ValidationExtensions Classe

Namespace Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer