Dataset.RemoveLayer

Dataset.RemoveLayer method

Removes the vector layer with specified name.

public virtual void RemoveLayer(string name)
ParameterTypeDescription
nameStringName of the layer

Exceptions

exceptioncondition
ArgumentExceptionNo layer with specified name found.
NotSupportedExceptionLayer removing is not supported.
IOExceptionAn I/O error occurred.
GisExceptionError while removing the layer.

See Also