Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.