ESRI.ArcGIS.ADF.IMS
SdeWorkspace Constructor(String,String,String,String,String)
See Also  Send Feedback
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 New 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) .

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.