Share via


PrincipalInfo.UserInfoID, champ (websvcPeople)

Member identifier (ID) for an SPUser object that is initialized to -1 when the object is created, and then set to a unique value when the object is added to an SPUserCollection.

Espace de noms : websvcPeople
Assembly : STSSOAP (dans stssoap.dll)

Syntaxe

'Déclaration
Public UserInfoID As Integer
'Utilisation
Dim instance As PrincipalInfo
Dim value As Integer

value = instance.UserInfoID

instance.UserInfoID = value
public int UserInfoID

Notes

A Web site has a collection of users, as well as a collection of sites which comprise the Web. The SiteUsers property of a SPWeb object represents a subset of users who are allowed to use the sites within the site collection. A smaller subset, Users, is composed of users who can use a specific site within the site collection.

When an SPUser object is created, it has an UserInfoID of -1. Adding this object to a SPUserCollection of users will give it a unique member ID, which allows an implementation to retrieve the user object by member ID as well as by e-mail address.

Voir aussi

Référence

PrincipalInfo, structure
Membres PrincipalInfo
websvcPeople, espace de noms
People.ResolvePrincipals, méthode
People.SearchPrincipals, méthode