用于识别桌面软件的唯一元素是什么?

问题描述

就像每个 android 应用程序 (com.microsoft.teams) 都有一个 android 应用程序 ID 一样,桌面软件的等效元素是什么?

解决方法

您可以使用以下代码获取唯一的应用程序指南:

String AppGuid = ((GuidAttribute)Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(GuidAttribute),true)[0]).Value;