Affecto.ActiveDirectoryService.ActiveDirectoryService.GetDirectoryEntryByNativeGuid C# (CSharp) Method

GetDirectoryEntryByNativeGuid() protected method

protected GetDirectoryEntryByNativeGuid ( System.Guid nativeGuid ) : System.DirectoryServices.DirectoryEntry
nativeGuid System.Guid
return System.DirectoryServices.DirectoryEntry
        protected DirectoryEntry GetDirectoryEntryByNativeGuid(Guid nativeGuid)
        {
            const string guidFilterFormat = "{0}/<GUID={1}>";
            string path = string.Format(guidFilterFormat, domainPath.GetPathWithProtocol(), nativeGuid.ToString("N"));

            return new DirectoryEntry(path);
        }
    }