示例#1
0
        public static string GetClassName(Type t)
        {
            ManagementClassMapAttribute a = Attribute.GetCustomAttribute(t, typeof(ManagementClassMapAttribute)) as ManagementClassMapAttribute;

            return(a?.ClassName);
        }
示例#2
0
        public static ManagementPath GetManagementPath(Type t)
        {
            ManagementClassMapAttribute a = Attribute.GetCustomAttribute(t, typeof(ManagementClassMapAttribute)) as ManagementClassMapAttribute;

            return(a?.Path);
        }
示例#3
0
        public static string GetNamespacePath(Type t)
        {
            ManagementClassMapAttribute a = Attribute.GetCustomAttribute(t, typeof(ManagementClassMapAttribute)) as ManagementClassMapAttribute;

            return(a?.NamespacePath);
        }