Programsko Preberite Opozorila za uporabnike v zbirališču

SPAlerCollection class can be used to get the Alert Collection for the User.

The below code snippet is used to read all alerts registered for the site collection users.

private
static
neveljaven GetAlerts()

{


SPSite currSite = novo
SPSite(“http://Udaj”);


SPWeb currWeb = currSite.OpenWeb();


SPUserCollection collUsers = currWeb.Users;


try

{


foreach (SPUser usr v collUsers)

{


Console.WriteLine(“Alerts for the User : “ + usr.Name);


foreach (SPAlert alrt v usr.Alerts)

{


Console.WriteLine(alrt.Item.Title + ” –> “ + alrt.AlertFrequency);

}

}

}


ulova

{

}


Console.ReadLine();

}

}



Leave a Reply

Lahko uporabite te HTML oznake

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>