Share via


SPUserCollection.Xml property

Gets an XML representation of the collection.

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

Syntax

'Declaration
Public ReadOnly Property Xml As String
    Get
'Usage
Dim instance As SPUserCollection
Dim value As String

value = instance.Xml
public string Xml { get; }

Property value

Type: System.String
A string that contains the XML.

Remarks

The Xml property returns an XML string similar to 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>

See also

Reference

SPUserCollection class

SPUserCollection members

Microsoft.SharePoint namespace