NDepend.API Documentation
TryGetQueryIdAndExplicitId Method
NDepend.CodeQuery Namespace > ExtensionMethodsQuery Class : TryGetQueryIdAndExplicitId Method
The query string.
The query id extracted
The query explicit-id extracted
Try extract the query id and explicit-id from a query string.
Syntax
[Extension()]
public static bool TryGetQueryIdAndExplicitId( 
   string queryString,
   out string id,
   out string explicitId
)

Parameters

queryString
The query string.
id
The query id extracted
explicitId
The query explicit-id extracted

Return Value

true if the id and explicit-id name has been extracted, else returns false.
Remarks
The query name, if any, is enclosed between the tags <Id> and </Id> 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