Hi Venugopal.sjce,
This forum discuss and ask questions about the C# programming language, since your issue is more related to SCCM, I would suggest that you could post your issue on the following forum for suitable support.
https://social.technet.microsoft.com/Forums/systemcenter/en-US/home?forum=configmgrgeneral
In addition, here is a sample about how to query information by SCCM using C# for your reference.
https://code.msdn.microsoft.com/windowsdesktop/Sample-SCCM-Application-376c9124/view/SourceCode
Best regards,
Zhanglong
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.