Exemplo n.º 1
0
        public void MainMethodCode()
        {
            Uri arcgisOnlineURL = new Uri("http://services1.arcgis.com/47GG2ga246DGaLwa/arcgis/rest/services/FeatureServiceName/FeatureServer");

            ServiceConnectionProperties arcGISOnline = new ServiceConnectionProperties(arcgisOnlineURL);

            using (Geodatabase featureService = new Geodatabase(arcGISOnline))
            {
                //These are the relationship clases where the origin layer ID is 0 and destination layer ID is 1
                IReadOnlyList <RelationshipClass> relationshipClasses = featureService.OpenRelationshipClass("0", "1");

                //These are the relationship clases where the origin layer ID is 1 and destination layer ID is 0
                //Note that these will be different from the relationship classes above.
                IReadOnlyList <RelationshipClass> reverseRrelationshipClasses = featureService.OpenRelationshipClass("1", "0");
            }
        }