Click to Rate and Give Feedback
Community Content
In this section
Statistics Annotations (1)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
SPPropertyBag Class (Microsoft.SharePoint.Utilities)
Stores arbitrary key-and-value pairs that contain custom property settings.

Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public Class SPPropertyBag
    Inherits StringDictionary
Visual Basic (Usage)
Dim instance As SPPropertyBag
C#
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
public class SPPropertyBag : StringDictionary
System.Object
   System.Collections.Specialized.StringDictionary
    Microsoft.SharePoint.Utilities.SPPropertyBag
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Update works not correctly by Remove      Thomas_Östreich   |   Edit   |   Show History

I have properties in my PropertyBag from SPWeb, however will remove this properties by "Remove" after update not removed!

Tags What's this?: Add a tag
Flag as ContentBug
Troubleshoot: SPPropertyBag can not deserialize complex type      cakriwut   |   Edit   |   Show History
Be carefull, the SPPropertyBag can not deserialize complex type. There is no way back if you ever put complex type in SPPropertyBag, except you have to deal directly with configuration DB. (Dealing directly with config DB is unsupported, but at least this will save you).
Check how to troubleshoot SPPropertyBag problem here:
http://blog.libinuko.com/2009/10/11/troubleshoot-sppropertybag-can-not-deserialize-complex-type/
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker