Table of Contents

Method RemoveDocument

Namespace
Alternet.Syntax.Parsers.Roslyn
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

RemoveDocument(DocumentId)

When implemented by a class, removes specified Microsoft.CodeAnalysis.Document from the project.

bool RemoveDocument(DocumentId documentId)

Parameters

documentId DocumentId

Microsoft.CodeAnalysis.DocumentId to remove.

Returns

bool

True if succeed; otherwise false.

RemoveDocument(string, ProjectId)

When implemented by a class, removes specified document from the project.

bool RemoveDocument(string fileName, ProjectId projectId = null)

Parameters

fileName string

File path to remove.

projectId ProjectId

Specifies Project to search for the document.

Returns

bool

True if succeed; otherwise false.