How to get the tags on a server object?

357
1
Jump to solution
06-29-2021 07:08 AM
Labels (1)
JonathanBailey_LimGeomatics
Occasional Contributor

Given a reference to a ServerObject, how can I find the tags that are applied to it?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
nicogis
MVP Frequent Contributor

 

IMapServer3 mp = (IMapServer3)this.serverObjectHelper.ServerObject;
object[] name = new object[1];
object[] values = new object[1];
mp.DocumentInfo.GetAllProperties(out name[0], out values[0]);
object[] nameList = (object[])name[0];
object[] valueList = (object[])values[0];

 

it's the property 'keywords'

 

View solution in original post

0 Kudos
1 Reply
nicogis
MVP Frequent Contributor

 

IMapServer3 mp = (IMapServer3)this.serverObjectHelper.ServerObject;
object[] name = new object[1];
object[] values = new object[1];
mp.DocumentInfo.GetAllProperties(out name[0], out values[0]);
object[] nameList = (object[])name[0];
object[] valueList = (object[])values[0];

 

it's the property 'keywords'

 

View solution in original post

0 Kudos