GetLayer()

For an Image object named myImage, use the following syntax:

var whatLayer = myImage.GetLayer()

Close