GSF.IO.FileStructure.SubFileDiskIoSessionPool.Clear C# (CSharp) Méthode

Clear() public méthode

Releases all of the data associated with the I/O Sessions.
public Clear ( ) : void
Résultat void
        public void Clear()
        {
            if (SourceData != null)
                SourceData.Clear();
            if (DestinationData != null)
                DestinationData.Clear();
            if (SourceIndex != null)
                SourceIndex.Clear();
            if (DestinationIndex != null)
                DestinationIndex.Clear();
        }

Usage Example

 /// <summary>
 /// Sets the current usage of the <see cref="BinaryStreamIoSessionBase"/> to null.
 /// </summary>
 public override void Clear()
 {
     if (IsDisposed || m_ioSessions.IsDisposed)
     {
         throw new ObjectDisposedException(GetType().FullName);
     }
     m_ioSessions.Clear();
 }