NDepend.API Documentation
TryGetQueryName Method
NDepend.CodeQuery Namespace > ExtensionMethodsQuery Class : TryGetQueryName Method
The query string.
The query name extracted
Try extract the query name from a query string.
Syntax
[Extension()]
public static bool TryGetQueryName( 
   string queryString,
   out string queryName
)

Parameters

queryString
The query string.
queryName
The query name extracted

Return Value

true if the query name has been extracted, else returns false.
Remarks
The query name, if any, is enclosed between the tags <Name> and </Name> in a comment line in the query string.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsQuery Class
ExtensionMethodsQuery Members