AddRef() public method

Adds a reference to the object
This only needs to be called on objects that are not going to be stored somewhere on the stack. Calling AddRef ensures that the JavaScript object the value refers to will not be freed until Release is called
public AddRef ( ) : uint
return uint
コード例 #1
0
 /// <summary>
 /// Adds a reference to the value
 /// </summary>
 /// <param name="value">The value</param>
 private static void AddReferenceToValue(IeJsValue value)
 {
     if (CanHaveReferences(value))
     {
         value.AddRef();
     }
 }