ValidationExtensions.LogValidationError Method
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)
Syntax
'Declaration
<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
Parameters
- extension
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.IValidateArchitectureExtension
- graph
Type: Microsoft.VisualStudio.GraphModel.Graph
- id
Type: String
- message
Type: String
- layerOrLayerModelNodeWithError
Type: Microsoft.VisualStudio.GraphModel.GraphNode
- errorSourceNodes
Type: IEnumerable<GraphNode>
- errorTargetNodes
Type: IEnumerable<GraphNode>
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphNode
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IValidateArchitectureExtension. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer Namespace