Share via


MetadataSerializationContext.RemoveDocument(String) Method

Definition

IMPORTANT: TMDL is still in preview and the API surface might still be modified prior to GA!

Removes a metadata document from the set of documents in the context.

public bool RemoveDocument (string logicalPath);
member this.RemoveDocument : string -> bool
Public Function RemoveDocument (logicalPath As String) As Boolean

Parameters

logicalPath
String

The logical path that identify the content in the set of documents in the context.

Returns

True, if the document was removed from the context; otherwise, false.

Exceptions

The specified path is a null reference (Nothing in Visual Basic) or empty.

Applies to