Ejemplo n.º 1
0
        public DirectoryEntry GetDirectoryEntry()
        {
            if (_disposed)
            {
                throw new ObjectDisposedException(GetType().Name);
            }

            if (!existing)
            {
                throw new InvalidOperationException(SR.CannotGetObject);
            }
            else
            {
                return(DirectoryEntryManager.GetDirectoryEntryInternal(context, cachedEntry.Path));
            }
        }
Ejemplo n.º 2
0
 public DirectoryEntry GetDirectoryEntry()
 {
     if (!this.disposed)
     {
         if (this.existing)
         {
             return(DirectoryEntryManager.GetDirectoryEntryInternal(this.context, this.cachedEntry.Path));
         }
         else
         {
             throw new InvalidOperationException(Res.GetString("CannotGetObject"));
         }
     }
     else
     {
         throw new ObjectDisposedException(this.GetType().Name);
     }
 }