How to Acess permission for SPSite
-
Hi all... How to give permission for the user to access the sharepoint documents data to be read...... I am trying this code but its not working...plz do delp..
SPSecurity.RunWithElevatedPrivileges(delegate()
{
Console.WriteLine(" Entered SPSIte path");
using (SPSite RootSite = new SPSite(listPath))
{
RootSite.AllowUnsafeUpdates = true;
Console.WriteLine("1Entered SPSIte path");
using (SPWeb SiteCollection = RootSite.OpenWeb())
{
string path = listPath;// RootSite.MakeFullUrl(PageName);
SPFile file = SiteCollection.GetFile(path);
string TimeCreated = file.TimeCreated.ToLongDateString();
Console.WriteLine("1.1: Created Date is :" );//+ TimeCreated);
}
}
});thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju