AddRef() 공개 메소드

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
리턴 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();
     }
 }