what is the best way to write error's log file on Windows-mobile?
what is the best way to 开发者_运维知识库write error's log file on Windows-mobile ?
i need any C# sample code for this
thank's in advance
I would recommend using the EventLog class of the OpenNETCF.Diagnostics namespace of the Smart Device Framework to do this. I prefer using the Smart Device Framework simply because the classes often try to mirror the names and functionality of their counterparts from the full .NET framework as closely as possible, plus the community edition is free :)
Documentation for the Smart Device Framework is here.
精彩评论