Show / Hide Table of Contents

# Class DocSnapshot

Represents a state of the document.

##### Inheritance

object
DocSnapshot

##### Implements

IDisposable

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.SDF

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class DocSnapshot : IDisposable

### Constructors

#### DocSnapshot(IntPtr)

##### Declaration

    public DocSnapshot(IntPtr impl_ptr)

##### Parameters

Type | Name | Description
--- | --- | ---
IntPtr | impl_ptr |

### Methods

#### Destroy()

##### Declaration

    public void Destroy()

#### Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

##### Declaration

    public void Dispose()

#### Dispose(bool)

##### Declaration

    protected virtual void Dispose(bool disposing)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | disposing |

#### Equals(DocSnapshot)

Returns whether this snapshot's document state is equivalent to another.

##### Declaration

    public bool Equals(DocSnapshot snapshot)

##### Parameters

Type | Name | Description
--- | --- | ---
DocSnapshot | snapshot | the other snapshot with which to compare

##### Returns

Type | Description
--- | ---
bool | Whether this snapshot's document state is equivalent to another

#### ~DocSnapshot()

##### Declaration

    protected ~DocSnapshot()

#### GetHash()

Returns a hash that is unique to particular document states.

##### Declaration

    public uint GetHash()

##### Returns

Type | Description
--- | ---
uint | A hash that is unique to particular document states

#### IsValid()

Returns whether this snapshot is valid.

##### Declaration

    public bool IsValid()

##### Returns

Type | Description
--- | ---
bool | Whether this snapshot is valid

### Implements

IDisposable