MetalamaAPI documentationIntrospection APIMetalama.​Framework.​WorkspacesWorkspaceGet­Declaration
Open sandboxFocus

Workspace.GetDeclaration Method

GetDeclaration(String, String, String, Boolean)

Gets a declaration in the current subset.

Declaration
public IDeclaration GetDeclaration(string projectName, string targetFramework, string declarationId, bool metalamaOutput)
Parameters
Type Name Description
String projectName

Path of the project.

String targetFramework

Target framework, or an empty string.

String declarationId

Serialized identifier of the declaration obtained with ToSerializableId().

Boolean metalamaOutput
Returns
Type Description
IDeclaration
Implements
IProjectSet.GetDeclaration(String, String, String, Boolean)