API UIObject GetName

Returns the widget object's name. name = UIObject:GetName

Returns

 * name : string ? - Name of the widget object. Anonymous frames return

Example
Creates a frame named "SomeFrame" and prints it. /dump CreateFrame("Frame", "SomeFrame"):GetName -- "SomeFrame"

Attempts to print the name of an anonymous frame. /dump CreateFrame("Frame"):GetName -- nil