API SecureHandlerSetFrameRef

Stores a frame handle on a given frame. secureHandlerFrame:SetFrameRef("label", refFrame) SecureHandlerSetFrameRef(frame, "label", refFrame)

Arguments

 * self/frame : Frame - Frame on which to set the frame reference.
 * The method version of the call is available only on SecureHandler*Template-inheriting frames.


 * label : String - Label using which to store the frame handle for later retrieval.
 * refFrame : Frame - Frame for which a handle should be created.

Example
The following snippet demonstrates how to transfer a frame handle to the restricted environment: local secureHandlerFrame = CreateFrame("FRAME", nil, nil, "SecureHandlerBaseTemplate") secureHandlerFrame:SetFrameRef("UIParent", UIParent) secureHandlerFrame:Execute( UIParent = self:GetFrameRef("UIParent") );