Add Reference from .NET tab or Browse the following location & add the dll.
C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\14\ISAPI\microsoft.office.workflow.tasks.dll
using Microsoft.Office.Workflow.Utility;
Contact c = Contact.FromName("Server Name\\Group Name", Myweb);
if (c != null)
{
string strUserType =
c.PrincipalType.ToString();
}
No comments:
Post a Comment