Feature.CopyValues

Feature.CopyValues method

Copies values of attributes from another feature.

public void CopyValues(Feature inputFeature)
ParameterTypeDescription
inputFeatureFeatureThe feature to copy values from.

Exceptions

exceptioncondition
ArgumentNullExceptionThe argument is null.
ArgumentExceptionThe attribute with this name does not exist in this layer.
InvalidOperationExceptionThe attribute is not locked.
InvalidOperationExceptionInput value is null an the attribute in this feature cannot be null.
GisExceptionAn attribute has same name but different data types in the features.

Remarks

This method only copies attributes with matching names.

See Also