SPPersistedObject example
| using System; namespace SPPersistedObject_Test // ---------------------------------------------------------------------- } // End of Counter class |
| static void Main(string[] args) // Designate which server will be utilized... // Create a Counter object that is a child of the server farm... // ---------------------------------------------------------------------- // Update the field to a non-default value of 99... // Saves the object and push it out to all servers... // Now use a new object to prove the value was stored on the server... // Verify the object was stored with a non-default value... // Now delete the object... // And perform cleanup... |
Comments
Post a Comment