Click or drag to resize

GeoStreamRepositoryUseDataSets Method (DataSet)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Specify the server-side datasets to be used.

Namespace:  Telogis.GeoBase.Repositories
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public void UseDataSets(
	params DataSet[] datasets
)

Parameters

datasets
Type: DataSet
The DataSets to use with this GeoStream server
Remarks

When setting up a GeoStreamRepository, users can specify the server-side datasets that they wish to use. Datasets can be grouped according to vendor and country, and to be able to use the datasets, the user must have permission to use them. These permissions are set up on the server-side's userinfo.config file. For each <user id> the userinfo.config file lists the <AllowedDataSets> for which the user is entitled to use. Each <DataSet> has a Ref attribute which points to the DataSet groupings (<DataFolder>) in the repository.config file. Furthermore, a default dataset is listed in the <AllowedDataSets> should the user fail to specify a dataset.

For more information on the server-side configuration files, see Configuring the Server, under the GeoStream Security section.

Examples
C#
//Set up a GeoStreamRepository with an array of server URL strings
GeoStreamRepository myGS = new GeoStreamRepository(myServerURLs);

//Set which datasets to use, using the property  <see cref="P:Telogis.GeoBase.Repositories.GeoStreamRepository.AvailableDataSets" />
myGS.UseDataSets(myGS.AvailableDataSets);
See Also