Beispiel #1
0
        public static String GetRefType(this PropertyData property)
        {
            if (property.HasQualifier("CIMTYPE"))
            {
                String[] cimtype = property.Qualifiers["CIMTYPE"].Value.ToString().Split(':');
                if (cimtype.Length == 2)
                {
                    return(cimtype[1]);
                }
            }

            return(String.Empty);
        }
Beispiel #2
0
 public static String GetDescription(this PropertyData property)
 {
     return(property.HasQualifier("Description") ?
            property.Qualifiers["Description"].Value.ToString() :
            String.Empty);
 }
Beispiel #3
0
 public static Boolean IsReadable(this PropertyData property)
 {
     return(property.HasQualifier("read"));
 }
Beispiel #4
0
 public static Boolean IsWritable(this PropertyData property)
 {
     return(property.HasQualifier("write"));
 }
Beispiel #5
0
 public static Boolean IsKey(this PropertyData property)
 {
     return(property.HasQualifier("key"));
 }