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




name
Name of the workspace.
server
Name of the server.
instance
Instance of the ArcSDE datasource.
user
User name to log into the ArcSDE datasource.
password
Password to log into the ArcSDE datasource.
Constructs an ArcSDE Workspace object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal name As String, _
   ByVal server As String, _
   ByVal instance As String, _
   ByVal user As String, _
   ByVal password As String _
)
Visual Basic (Usage)Copy Code
Dim name As String
Dim server As String
Dim instance As String
Dim user As String
Dim password As String
 
Dim instance As SdeWorkspace(name, server, instance, user, password)
C# 
public SdeWorkspace( 
   string name,
   string server,
   string instance,
   string user,
   string password
)

Parameters

name
Name of the workspace.
server
Name of the server.
instance
Instance of the ArcSDE datasource.
user
User name to log into the ArcSDE datasource.
password
Password to log into the ArcSDE datasource.

Example

For an example of using SdeWorkspace to add a new layer from ArcSDE to the map, see FeatureLayer(string, FeatureDataset) .

See Also

© 2010 All Rights Reserved.