Share via


AggregateDataSourceView.DataSourcesString property

This property, in tandem with the DataSources (a DataSourceCollection) property defined below, comprises the DFWP story for serialization. This means both binary serialization and .webpart (import/export) serialization. If the string is empty, it is filled in using the IDataSources contained in the DataSources collection. For IDataSources requiring register directives, we also put those in the string. *NOTICE* This tandem approach is necessary because a collection needs to be read/write in order to be personalizable (apparently a WSS WebPartSerializer constraint. However, ASP.NET deserializes read/write properties by simply calling the set method with the ControlBuilder. In the case of collections, this yields a CollectionBuilder, which can't be assigned to a collection. As of the time this code was written, ASP.NET is apparently not designed to handle read/write collections.

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

Syntax

'Declaration
Public Property DataSourcesString As String
    Get
    Set
'Usage
Dim instance As AggregateDataSourceView
Dim value As String

value = instance.DataSourcesString

instance.DataSourcesString = value
public string DataSourcesString { get; set; }

Property value

Type: System.String

See also

Reference

AggregateDataSourceView class

AggregateDataSourceView members

Microsoft.SharePoint.WebControls namespace