ArcGIS Runtime SDK for WPF - Library Reference
CreateSDEConnection(String,String,Boolean) Method
See Also 
ESRI.ArcGIS.Client.Local Namespace > WorkspaceInfo Class > CreateSDEConnection Method : CreateSDEConnection(String,String,Boolean) Method

workspaceID
A System.String representing a unique identifier for this workspace.
connectionString
The ArcSDE connection string.
lockVersion
true if the connection is locked to this database version; otherwise false
Creates a WorkspaceInfo object of WorkspaceFactoryType SDE based on the provided unique identifier and connection string.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function CreateSDEConnection( _
   ByVal workspaceID As String, _
   ByVal connectionString As String, _
   ByVal lockVersion As Boolean _
) As WorkspaceInfo
C# 
public static WorkspaceInfo CreateSDEConnection( 
   string workspaceID,
   string connectionString,
   bool lockVersion
)

Parameters

workspaceID
A System.String representing a unique identifier for this workspace.
connectionString
The ArcSDE connection string.
lockVersion
true if the connection is locked to this database version; otherwise false

Return Value

A WorkspaceInfo of WorkspaceFactoryType SDE.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.