Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SPUserStorageCollection class
Collapse the table of content
Expand the table of content

SPUserStorageCollection class

Represents a collection of SPUserStorage objects used to maintain storage information for all users of a Web Part Page.


Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public class SPUserStorageCollection : ReadOnlyCollectionBase

Use the LengthByUser property of the SPFile class to return a collection of user-storage objects that contain information about each user of a Web Part Page. Use an indexer to return a single user-storage object from the collection. For example, if the collection is assigned to a variable named myUserStorages, use myUserStorages[index] in C#, or myUserStorages(index) in Microsoft Visual Basic, where index is the index number of the user-storage object in the collection. You can also use a foreach statement (For Each in Visual Basic) to iterate through the collection and return the user-storage objects.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft