This document is archived and information here might be outdated.  Recommended version.


ILayer.Valid Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayer Interface > ILayer.Valid Property
ArcGIS Developer Help

ILayer.Valid Property

Indicates if the layer is currently valid.

[Visual Basic .NET]
Public ReadOnly Property Valid As Boolean
[C#]
public bool Valid {get;}
[C++]
HRESULT get_Valid(
  Boolean* Valid
);
[C++]
Parameters
Valid [out, retval]

Valid is a parameter of type bool*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The valid property indicates if the layer is currently valid.  Layers that reference feature classes are valid when they hold a reference to a valid feature class.  The property does not however validate the integrity of the feature classes reference to the database. Therefore, in rare situations if a datasource is removed after a layer is initialized, the layer will report itself as valid but query attempts to the data source will error due to the lack of underlying data.

See Also

ILayer Interface

.NET Samples

ArcGIS Network Analyst extension Engine application