This document is archived and information here might be outdated.  Recommended version.


Get The SchematicWorkspace Related To A Schematic Dataset Snippet (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference

Get The SchematicWorkspace Related To A Schematic Dataset Snippet

Retrieve the SchematicWorkspace related to a given SchematicDataset

[C#]
        /// <summary>
        /// Retrieve the SchematicWorkspace related to a given SchematicDataset
        /// </summary>
        /// <param name="schemDataset">The input SchematicDataset</param>
        /// <returns>The retrieved ESRI.ArcGIS.Schematic.ISchematicWorkspace</returns>
        public ESRI.ArcGIS.Schematic.ISchematicWorkspace GetWorkspace(ESRI.ArcGIS.Schematic.ISchematicDataset schemDataset)
        {
                return schemDataset.SchematicWorkspace;
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Retrieve the SchematicWorkspace related to a given SchematicDataset
        ''' </summary>
        ''' <param name="schemDataset">The input SchematicDataset</param>
        ''' <returns>The retrieved ESRI.ArcGIS.Schematic.ISchematicWorkspace</returns>
        Public Function GetWorkspace(ByVal schemDataset As ESRI.ArcGIS.Schematic.ISchematicDataset) As ESRI.ArcGIS.Schematic.ISchematicWorkspace

                Return schemDataset.SchematicWorkspace
        End Function

Additional Requirements
  • The code in this document requires the following References added to the Visual Studio project:
  • ESRI.ArcGIS.Schematic