I am using System.directory services and using directory schema and directory attributes to get information from Active directory. The problem is i am just using attributes but in case of Integer , i need to show friendly messages after some validation say
if the integer is 0 i need to show "Security group user" like that. Please find my sample code and looking for you help in achieving it.....
using System.DirectoryServices;
using System.DirectoryServices.ActiveDirectory;
[DirectorySchema("group")]
public class Group
{
[DirectoryAttribute("groupType")]
public Int32 Grouptype { get; set; }
}
bhalajisw
Member
33 Points
71 Posts
Attibute validation
May 26, 2011 06:08 AM|LINK
Hi team,
I am using System.directory services and using directory schema and directory attributes to get information from Active directory. The problem is i am just using attributes but in case of Integer , i need to show friendly messages after some validation say if the integer is 0 i need to show "Security group user" like that. Please find my sample code and looking for you help in achieving it.....
using System.DirectoryServices; using System.DirectoryServices.ActiveDirectory; [DirectorySchema("group")] public class Group { [DirectoryAttribute("groupType")] public Int32 Grouptype { get; set; } }