PdfSharp.Drawing.XPdfForm.Dispose C# (CSharp) 메소드

Dispose() 보호된 메소드

Frees the memory occupied by the underlying imported PDF document, even if other XPdfForm objects refer to this document. A reuse of this object doesn't fail, because the underlying PDF document is re-imported if necessary.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void
    protected override void Dispose(bool disposing)
    {
      if (!disposed)
      {
        disposed = true;
        try
        {
          if (disposing)
          {
            //...
          }
          if (externalDocument != null)
            PdfDocument.Tls.DetachDocument(externalDocument.Handle);
          //...
        }
        finally
        {
          base.Dispose(disposing);
        }
      }
    }
    bool disposed;