Condividi tramite


Metodo ValidationExtensions.LogValidationError

Spazio dei nomi:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)

Sintassi

'Dichiarazione
<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

Parametri

Valore restituito

Tipo: Microsoft.VisualStudio.GraphModel.GraphNode

Nota sull'utilizzo

In Visual Basic e C# è possibile chiamare questo metodo come metodo di istanza su qualsiasi oggetto di tipo IValidateArchitectureExtension. Per chiamare il metodo utilizzando la sintassi del metodo di istanza, omettere il primo parametro. Per ulteriori informazioni, vedere Metodi di estensione (Visual Basic) o Metodi di estensione (Guida per programmatori C#).

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ValidationExtensions Classe

Spazio dei nomi Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer