I want to use an ArcObjects function to retrieve the SDE Connection through the .sde file. I appreciate if you can help.
Refer to https://community.esri.com/thread/92279 I added a line to get the IWorkspace. Therefore, this problem can be closed. Thanks for your review.