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
- extension
Type : Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.IValidateArchitectureExtension
- graph
Type : Microsoft.VisualStudio.GraphModel.Graph
- id
Type : System.String
- message
Type : System.String
- layerOrLayerModelNodeWithError
Type : Microsoft.VisualStudio.GraphModel.GraphNode
- errorSourceNodes
Type : System.Collections.Generic.IEnumerable<GraphNode>
- errorTargetNodes
Type : System.Collections.Generic.IEnumerable<GraphNode>
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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.
Voir aussi
Référence
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer, espace de noms