Updates a MapMember's data source.
This method must be called on the MCT. Use QueuedTask.Run.
Reset the URL of a feature service layer
{
CIMStandardDataConnection dataConnection = featureLayer.GetDataConnection() as CIMStandardDataConnection;
dataConnection.WorkspaceConnectionString = @"DATABASE=C:\Data\USNationalParks\USNationalParks.gdb";
//Note: needs to be called on the MCT
featureLayer.SetDataConnection(dataConnection);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)
ArcGIS Pro version: 3.0 or higher.