public void FindAndReplaceWorkspacePath( string findWorkspacePath, string replaceWorkspacePath, bool validate )
Public Sub FindAndReplaceWorkspacePath( _ ByVal findWorkspacePath As String, _ ByVal replaceWorkspacePath As String, _ Optional ByVal validate As Boolean _ )
Parameters
- findWorkspacePath
- A string that represents the workspace path or connection file you want to find. If an empty string is passed, then all workspace paths will be replaced with the replaceWorkspacePath parameter depending on the value of the validate parameter.
- replaceWorkspacePath
- A string that represents the workspace path or connection file you want to replace to.
- validate
- (Optional) -true- the workspace will only be updated if the replaceWorkspacePath value is a valid workspace. If it is not valid, the workspace will not be replaced.
-false- the method will set the workspace to match the replaceWorkspacePath, regardless of a valid match. In this case, if a match does not exist, then layers and standalone tables would appear broken.
(default value = true)