internal static string GetDnFromPath(string fullPath) { IADsPathname pathName = new PathnameClass(); pathName.Set(fullPath, (int)ADS_SETTYPE_ENUM.ADS_SETTYPE_FULL); return(pathName.Retrieve((int)ADS_FORMAT_ENUM.ADS_FORMAT_X500_DN)); }
internal static string GetDnFromPath(string fullPath) { IADsPathname pathName = new PathnameClass(); try { pathName.Set(EscapeDnFilter(fullPath), (int)ADS_SETTYPE_ENUM.ADS_SETTYPE_FULL); return(pathName.Retrieve((int)ADS_FORMAT_ENUM.ADS_FORMAT_X500_DN)); } finally { Marshal.FinalReleaseComObject(pathName); } }
internal static string GetDnFromPath(string fullPath) { IADsPathname pathName = new PathnameClass(); pathName.Set(fullPath, (int)ADS_SETTYPE_ENUM.ADS_SETTYPE_FULL); return pathName.Retrieve((int)ADS_FORMAT_ENUM.ADS_FORMAT_X500_DN); }