Esempio n. 1
0
 /// <summary>
 /// Deletes a group from Active Directory.
 /// </summary>
 /// <param name="ad">An Active Directory object used to delete the group.</param>
 /// <param name="guid">The GUID of the group.</param>
 /// <returns>True if the group was deleted, false otherwise.</returns>
 static public bool Delete(ActiveDirectory ad, Guid guid)
 {
     if (ad != null && guid != Guid.Empty)
     {
         return(ad.Delete(guid));
     }
     else
     {
         return(false);
     }
 }