System.Xml.XmlDownloadManager.Remove C# (CSharp) Méthode

Remove() private méthode

private Remove ( string host ) : void
host string
Résultat void
        internal void Remove( string host ) {
            lock ( this ) {
                OpenedHost openedHost = (OpenedHost)connections[host];
                if ( openedHost != null ) {
                    if ( --openedHost.nonCachedConnectionsCount == 0 ) {
                        connections.Remove( host );
                    }
                }
            }
        }

Usage Example

 public override void Close()
 {
     if (_stream != null)
     {
         _downloadManager.Remove(this);
         _stream.Close();
         _stream = null;
     }
 }
All Usage Examples Of System.Xml.XmlDownloadManager::Remove