ArcGISRuntimeXamarin.Samples.FeatureCollectionLayerFromPortal.FeatureCollectionLayerFromPortal.OpenPortalFeatureCollectionClick C# (CSharp) Méthode

OpenPortalFeatureCollectionClick() private méthode

private OpenPortalFeatureCollectionClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void
        private void OpenPortalFeatureCollectionClick(object sender, EventArgs e)
        {
            // Get the portal item Id from the user
            var collectionItemId = CollectionItemIdTextBox.Text.Trim();

            // Make sure an Id was entered
            if (string.IsNullOrEmpty(collectionItemId))
            {
                DisplayAlert("Feature Collection ID", "Please enter a portal item ID", "OK");
                return;
            }

            // Call a function to add the feature collection from the specified portal item
            OpenFeaturesFromArcGISOnline(collectionItemId);
        }
    }