Share via


Xml Property

The Xml property of the SPUserCollection class gets an XML representation of the collection.

Property Value

A string that contains the XML.

Remarks

The Xml property returns an XML string like the following:

<Users>
   <User ID="3" Sid="S-1-5-21-2127521184-1604012920-1887927527-68689"
      Name="User1_Display_Name" LoginName="User_Name_1"
      Email="User1_E-mail"
      Notes="" IsSiteAdmin="True" IsDomainGroup="False" />
   <User ID="1" Sid="S-1-5-21-2127521184-1604012920-1887927527-76687"
      Name="User2_Display_Name" LoginName="User_Name_2"
      Email="User2_E-mail"
      Notes="" IsSiteAdmin="True" IsDomainGroup="False" />
   <User ID="5" Sid="S-1-5-21-2127521184-1604012920-1887927527-35413"
      Name="User3_Display_Name" LoginName="User_Name_3"
      Email="User3_E-mail"
      Notes="" IsSiteAdmin="False" IsDomainGroup="False" />
</Users>

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security