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

Parameters

idAndExplicitId
The is and explicit id.
ruleProvider
The rule provider.
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, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

ExtensionMethodsQuery Class
ExtensionMethodsQuery Members
Overload List