Table of Contents

Method RemoveDocument

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

RemoveDocument(DocumentId)

Removes specified Microsoft.CodeAnalysis.Document from the project.

public virtual bool RemoveDocument(DocumentId documentId)

Parameters

documentId DocumentId

Microsoft.CodeAnalysis.DocumentId to remove.

Returns

bool

True if succeed; otherwise false.

RemoveDocument(string, ProjectId)

Removes specified document from the project.

public virtual 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.