IFeatureLayer2 pFeatureLayer2=pFeatureLayer as IFeatureLayer2; this.pGeometryType = pFeatureLayer2.ShapeType;