Blog Stats
  • Posts - 142
  • Articles - 0
  • Comments - 23
  • Trackbacks - 0

 

SharePoint Object Model

There are 2 entries for the tag SharePoint Object Model

Manipulating SharePoint Lists with Code

How do I create a custom list? 1: Guid listId = webSite.Lists.Add("Sample", "Sample List", SPListTemplateType.GenericL... 2: How to determine if a list already exists within an SPWeb? 1: public static bool DoesListExist(SPWeb web, String listName) 2: { 3: foreach (SPList list in web.Lists) 4: { 5: if (true == list.Title.Equals(listName, StringComparison.OrdinalIgn... 6: return true; 7: } 8: return false; 9: } How to determine if a column (field) already exists? 1: if (!list.Fields.ContainsField...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Disposing of SharePoint Objects

The .NET Framework allows developers to write managed code. The term managed refers to how memory is handled by a computer system. For example, C/C++ code is commonly known as unmanaged because developers must allocate and de-allocate memory. In contrast, the .NET Framework provide a mechanism known as the Garbage Collector (GC) to de-allocate or collect object no longer in use. I have found it particularly helpful to consider SharePoint a very large ASP.NET Application. If you can visualize SharePoint...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

 

Copyright © DennisBottjer