Gets a layer by index.
[Visual Basic .NET] Public Sub GetLayer ( _ ByVal iLayer As Integer, _ ByRef ppLayer As ILayer _ )
[C#] public void GetLayer ( int iLayer, ref ILayer ppLayer );
Product Availability
Available with ArcGIS Desktop. Requires 3D Analyst Extension.