Share via


SPGroupCollection.Xml property

Gets the properties of the collection as XML.

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

Syntax

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

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

Property value

Type: System.String
A string that contains the XML, as follows:

<Groups>
  <Group ID="4" Name="Team Site Visitors" Description="Use this group
    to give people read permissions to the SharePoint site: Team Site" 
    OwnerID="3" OwnerIsUser="False" />
  <Group ID="8" Name="MyWebsite Members" Description="Use this group to 
    give people contribute permissions to the SharePoint site:
    MyWebsite" OwnerID="7" OwnerIsUser="False" />
  <Group ID="7" Name="MyWebsite Owners" Description="Use this group to
    give people full control permissions to the SharePoint site:
    MyWebsite" OwnerID="7" OwnerIsUser="False" />
</Groups>

See also

Reference

SPGroupCollection class

SPGroupCollection members

Microsoft.SharePoint namespace