Hi -I thought I knew this but I guess I don't. Given a graphic with attributes, how do you obtain the value of a specific attribute key?I have the following: foreach (Graphic g in featureSet.Features)
{
//Graphic gr = featureSet.Features[0];
g.Symbol = LayoutRoot.Resources["LinesSymbol"] as LineSymbol;
graphicsLayer.Graphics.Add(g);
ID = g.Attributes["PAGsde.DBO.TrafficCountNetwork.OBJECTID"] as string;
// How to get at graphic attributes
//foreach (var a in g.Attributes)
//{
// MessageBox.Show(a.Key + ": " + a.Value);
//}
}
The loop which is commented out reveals that the key "PAGsde.DBO.TrafficCountNetwork.OBJECTID" is a valid key with a value but ID always comes up null. How can I assign the key value to the variable?Thanks