if (pkey.ToUpper() == "MEMBEROF" &&
pCollection.ToUpper().IndexOf("CN=MYGROUP_") == 0)
{
string userGroup = pCollection.Substring(11,3);
}
Karl
Microsoft.VisualBasic for the win!!!
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:86**********************************@microsof t.com...
Hello,
This is the way I can catching my group name from AD collection.
If UCase(pKey) = "MEMBEROF" And UCase(pCollection)
Like "CN=MYGROUP_*" Then
ADUserMYGROUP = Mid(pCollection, 11, 3)
Return ADUserMYGROUP
End If
It seems like is not recognizable by C#, how would you do it in C#?
Thanks,
Jim.