sexta-feira, 24 de julho de 2015

ActiveDirectoryOrganizationalUnit C#

using System.DirectoryServices;

namespace Lapuinka.Security.ActiveDirectory
{
    public class ActiveDirectoryOrganizationalUnit : ActiveDirectoryObject
    {
        private readonly DirectoryEntry _entry;

        public string Name
        {
            get { return (string) _entry.Properties["name"].Value; }
        }

        public ActiveDirectoryOrganizationalUnit(DirectoryEntry entry)
        {
            _entry = entry;
        }
    }
}


Postar um comentário