Keyoti SearchUnit API Docs
RemoveLocation Method (locationName, checkIfLocationCategoryIsUsed)
API DocumentationKeyoti.SearchEngine.IndexDocumentIndexRemoveLocation(String, Boolean)
Keyoti SearchUnit v6
Removes a location from the index if the location is unused, otherwise throws an exception.
Declaration Syntax
C#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public virtual void RemoveLocation(
	string locationName,
	bool checkIfLocationCategoryIsUsed
)
public virtual void RemoveLocation(
	string locationName,
	bool checkIfLocationCategoryIsUsed
)
Public Overridable Sub RemoveLocation ( 
	locationName As String,
	checkIfLocationCategoryIsUsed As Boolean
)
Public Overridable Sub RemoveLocation ( 
	locationName As String,
	checkIfLocationCategoryIsUsed As Boolean
)
public:
virtual void RemoveLocation(
	String^ locationName, 
	bool checkIfLocationCategoryIsUsed
)
public:
virtual void RemoveLocation(
	String^ locationName, 
	bool checkIfLocationCategoryIsUsed
)
abstract RemoveLocation : 
        locationName : string * 
        checkIfLocationCategoryIsUsed : bool -> unit 
override RemoveLocation : 
        locationName : string * 
        checkIfLocationCategoryIsUsed : bool -> unit 
abstract RemoveLocation : 
        locationName : string * 
        checkIfLocationCategoryIsUsed : bool -> unit 
override RemoveLocation : 
        locationName : string * 
        checkIfLocationCategoryIsUsed : bool -> unit 
Parameters
locationName (String)
checkIfLocationCategoryIsUsed (Boolean)
Remarks
Throws an InvalidOperationException if the location is currently assigned to a document.

Assembly: Keyoti4.SearchEngine.Core (Module: Keyoti4.SearchEngine.Core.dll) Version: 2015.6.15.120