ESRI.ArcGIS.ADF.IMS
FeatureDataset Constructor(String,NamedWorkspace)
See Also 
ESRI.ArcGIS.ADF.IMS.Data Namespace > FeatureDataset Class > FeatureDataset Constructor : FeatureDataset Constructor(String,NamedWorkspace)




name
Name for the FeatureDataset.
workspace
The workspace for the dataset location, in this case a named workspace in the data source.
Constructs a FeatureDataset object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal name As String, _
   ByVal workspace As NamedWorkspace _
)
Visual Basic (Usage)Copy Code
Dim name As String
Dim workspace As NamedWorkspace
 
Dim instance As FeatureDataset(name, workspace)
C# 
public FeatureDataset( 
   string name,
   NamedWorkspace workspace
)

Parameters

name
Name for the FeatureDataset.
workspace
The workspace for the dataset location, in this case a named workspace in the data source.

Example

For an example of using a new FeatureDataset to create a dynamic map layer, see FeatureLayer(string, FeatureDataset).

Remarks

Use this method to create a dynamic layer from a data source whose workspace is already present in the map service. A dynamic layer is a layer based on data not yet in the map service.

You must know the name of the workspace as given in the SDEWORKSPACE or SHAPEWORKSPACE tag in the ArcXML configuration file for the map service. These workspace names are not available programmatically. Contact the map service author to obtain workspace names if necessary. An alternative is to create a new workspace if you know the source or connection information. In that case, see one of the other constructors for FeatureDataset.

The name argument must match the name of the data set in the data source. Do not use an arbitrary name. This name is not the same as the layer name in which the data set will be used.

For shapefiles, use the name of the data file without an extension such as STATES. For ArcSDE, use the full name of the layer such as DATA.STATES. Performance is generally better if the name is all upper case.

See Also

© 2010 All Rights Reserved.