因为不常用,老师忘记怎么申明.。这次记下来,哪天用了又忘了就来翻翻
主要代码
IDictionary<string, string> openWith = new Dictionary<string, string>(); // Add some elements to the dictionary. There are no // duplicate keys, but some of the values are duplicates. openWith.Add("txt", "notepad.exe"); openWith.Add("bmp", "paint.exe"); openWith.Add("dib", "paint.exe"); openWith.Add("rtf", "wordpad.exe");
微软官方文档:https://oapi.dingtalk.com/gettoken?appkey=key&appsecret=secret