在赋值语句中怎样强制转换对象类型解决方案

在赋值语句中怎样强制转换对象类型急 急 急,在线等Imports ESRI.ArcGIS.ADF.ArcGISServerImports System.D

在赋值语句中怎样强制转换对象类型
急 急 急,在线等
Imports ESRI.ArcGIS.ADF.ArcGISServer
Imports System.Drawing
Dim point As New ESRI.ArcGIS.ADF.Web.Geometry.Point
  point.X = x
  point.Y = y
  Dim symbol As New ESRI.ArcGIS.ADF.Web.Display.Symbol.SimpleMarkerSymbol
  symbol.Type = 2
  symbol.Color = Color.FromArgb(r, g, b)
  symbol.Width = 10
在红色“color”处提示错误:“color”不明确,从命名空间或类型“ESRI.ArcGIS.ADF.ArcGISServer、System.Drawing”导入
比如说此处的color是ESRI.ArcGIS.ADF.ArcGISServer命名空间的,我该如何说明?


[解决办法]
symbol.Color = ESRI.ArcGIS.ADF.ArcGISServer.Color.FromArgb(r, g, b)