SPUserCollection properties

The SPUserCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of users in the collection. (Overrides SPBaseCollection.Count.)
Public property Item[Int32] Gets the user object at the specified index in the collection. In C#, this property is an indexer for the SPUserCollection class.
Public property Item[String] Gets the user object with the specified user name from the collection. In C#, this property is an indexer for the SPUserCollection class.
Public property RetrieveAllRoles Gets or sets a Boolean value that specifies whether to preload roles for users to increase performance. (Inherited from SPMemberCollection.)
Public property SchemaXmlEx Gets a list schema that specifies fields used to define the collection.
Public property ViewSchemaXmlEx Gets a schema that describes the default view used to return user information for the collection.
Public property Web Gets the Web site to which the collection belongs. (Inherited from SPMemberCollection.)
Public property Xml Gets an XML representation of the collection.
Public property XmlEx Gets the collection in XMLDATA format.

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)

Top

See also

Reference

SPUserCollection class

Microsoft.SharePoint namespace