Exemple #1
0
 // Token: 0x0600000E RID: 14 RVA: 0x00002332 File Offset: 0x00000532
 public static T PropertyQuery <T>(string wmiclass, string property, ManagementScope scope = null)
 {
     return(Wmi.PropertyQuery <T>(wmiclass, property, null, scope));
 }
Exemple #2
0
        // Token: 0x0600000D RID: 13 RVA: 0x000022F8 File Offset: 0x000004F8
        public static T PropertyQuery <T>(string wmiclass, string property, string condition, ManagementScope scope = null)
        {
            WmiProperty wmiProperty = Wmi.PropertyQuery(wmiclass, property, condition, scope);

            return((wmiProperty.Value == null) ? default(T) : ((T)((object)wmiProperty.Value)));
        }