Share via


SPUserCollection.ViewSchemaXmlEx Property

Gets a schema that describes the default view used to return user information for 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 ViewSchemaXmlEx As String
    Get
'Usage
Dim instance As SPUserCollection
Dim value As String

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

Property Value

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

Remarks

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

<View Name="userInfo" DefaultView="TRUE" Type="HTML" 
      DisplayName="All Items" Url="" BaseViewID="1">
   <Query>
   </Query>
   <ViewFields>
      <FieldRef Name="ID" />
      <FieldRef Name="Title" />
      <FieldRef Name="Identifier" />
      <FieldRef Name="Email" />
   </ViewFields>
</View>

See Also

Reference

SPUserCollection Class

SPUserCollection Members

Microsoft.SharePoint Namespace