|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayerFile Interface > ILayerFile.IsLayerFile Property (ArcObjects .NET 10.5 SDK) | 
Indicates if the file is a valid layer file.
[Visual Basic .NET] Public Function get_IsLayerFile ( _ ByVal sFile As String _ ) As Boolean
[C#] public bool get_IsLayerFile ( string sFile );
[C++]
HRESULT get_IsLayerFile(
  BSTR sFile,
  VARIANT_BOOL* IsLayerFile
);
[C++]
Parameters sFile [in] sFile is a parameter of type BSTR IsLayerFile [out, retval] IsLayerFile is a parameter of type VARIANT_BOOL