Microsoft.JScript.VsaItem.Remove C# (CSharp) Method

Remove() private method

private Remove ( ) : void
return void
      internal virtual void Remove(){
        this.engine = null;
      }

Usage Example

Example #1
0
 public void Remove(int itemIndex)
 {
     if (this.isClosed)
     {
         throw new JSVsaException(JSVsaError.EngineClosed);
     }
     this.TryObtainLock();
     try
     {
         if ((0 > itemIndex) || (itemIndex >= this.items.Count))
         {
             throw new JSVsaException(JSVsaError.ItemNotFound);
         }
         VsaItem item = (VsaItem)this.items[itemIndex];
         item.Remove();
         this.items.RemoveAt(itemIndex);
         if (item is VsaStaticCode)
         {
             this.staticCodeBlockCount--;
         }
     }
     finally
     {
         this.ReleaseLock();
     }
 }
All Usage Examples Of Microsoft.JScript.VsaItem::Remove