Partager via


ValidationExtensions.LogValidationError, méthode

Espace de noms :  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Assembly :  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (dans Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)

Syntaxe

'Déclaration
<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

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.GraphModel.GraphNode

Remarque sur l'utilisation

En Visual Basic et C#, vous pouvez appeler cette méthode comme une méthode d'instance sur n'importe quel objet de type IValidateArchitectureExtension. Lorsque vous utilisez la syntaxe des méthodes d'instance pour appeler cette méthode, omettez le premier paramètre. Pour plus d'informations, consultez Méthodes d'extension (Visual Basic) ou Méthodes d'extension (Guide de programmation C#).

Sécurité .NET Framework

Voir aussi

Référence

ValidationExtensions Classe

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer, espace de noms