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
System.String projectName

Path of the project.

System.String targetFramework

Target framework, or an empty string.

System.String declarationId

Serialized identifier of the declaration obtained with ToSerializableId().

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