IWorkspace workspace = ((IDataset)ArcMap.Document.ActiveView.FocusMap.Layer[0]).Workspace; IVersionedWorkspace versionedWorkspace = (IVersionedWorkspace)workspace; String strVer = versionedWorkspace.DefaultVersion.VersionName;
IWorkspace workspace = ((IDataset)ArcMap.Document.ActiveView.FocusMap.Layer[0]).Workspace; IVersion version = (IVersion)workspace; String strVer = version.VersionName;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.