Share via


SPGroupCollection.Xml Property

Gets the properties of the collection as XML.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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