NotSupportedException when setting Graphic attributes api 100 under UWP

705
2
05-10-2017 11:52 AM
mh10
by
New Contributor III

We have code that was running ok under api 10.2.7

but now under api 100 we are getting

System.NotSupportedException when ever we do anything with a graphic's attributes:

var Graphic = new Graphic(Point, new List<KeyValuePair<string, object>>()

{

    new KeyValuePair<string, object>("Mode", Mode),
});

 

or like this:

Graphic.Attributes.Add(new KeyValuePair<string, object>("Mode", Mode));

Is there any workaround for this?

0 Kudos
2 Replies
mh10
by
New Contributor III

Hi

I think it works if we only add string attributes? In the code above Mode is an object

0 Kudos
dotMorten_esri
Esri Notable Contributor

Only simple value types are supported as attributes (ie string, integer, double, etc)

0 Kudos