예제 #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);
        }