Partilhar via


SPUserCollection.SchemaXmlEx Property

Gets a list schema that specifies fields used to define the collection.

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

Syntax

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

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

Property Value

Type: System.String
A string in Collaborative Application Markup Language Core Schemas that contains the list schema.

Remarks

The SchemaXmlEx property returns a CAML string similar to the following:

<List ID="{900BA96F-F422-4B35-85BB-0140A015D6F4}" Title="UserInfo" 
   Name="{900BA96F-F422-4B35-85BB-0140A015D6F4}" Description="">
   <Fields>
      <Field ColName="tp_ID" DisplayName="ID" Type="Counter" Name="ID" 
         PrimaryKey="TRUE" ReadOnly="TRUE" /><Field ColName="tp_Title" 
            DisplayName="Full Name" 
         Type="Text" Name="Title" Required="FALSE" />
      <Field ColName="tp_Identifier" DisplayName="Login Name" 
         Type="Text" Name="Name" Required="TRUE" />
      <Field ColName="tp_Email" DisplayName="E-mail Address" 
         Type="Text" Name="Email" Required="FALSE" />
      </Fields>
      <RegionalSettings>
         <Locale>1033</Locale>
      </RegionalSettings>
</List>

See Also

Reference

SPUserCollection Class

SPUserCollection Members

Microsoft.SharePoint Namespace