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

workspaceID
A System.String representing a unique identifier for this workspace.
pathToSdeConnectionFile
The path to the ArcSDEconnection file (.sde).
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 path to an ArcSDE connection file.

Syntax

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

Parameters

workspaceID
A System.String representing a unique identifier for this workspace.
pathToSdeConnectionFile
The path to the ArcSDEconnection file (.sde).
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.