i 有一个问题
attrval[5] = WrmService.WindowsAgent.AgentVersion;
From above if attrval[5] is null or not getting any value or any strings other than numeric values i want to assign attrval[5] to value 0.0.0.0 otherwise i will display the numeric value which is coming.What coding i have to implement here
and finally at UI there are two possible chances one is value is 0.0.0.0 or numeric value. if it is 0.0.0.0 i will display Unknown string from resource file or i will display the numeric value in LISTVIEW
i 正在这样做,如下文所示。
if(Data.AgentVersion ==null)
SubItems.Add(ResourcePolicySystemsLVI.m_nullVersion);
else
SubItems.Add(((IResourcePolicy)Data).AgentVersion);
如果(Data.AgentVersion ==null)到(Data.AgentVersion) =0.0.0.0