示例#1
0
        public string GetProperty(GetPropertyOpSettings settings)
        {
            SingleResponse response = MakeSingleRequest("GetProperty", settings);

            if (response.Value == null)
            {
                return string.Empty;
            }

            CheckSingleResponse(response, typeof(string));

            return ((string)response.Value);
        }
示例#2
0
 public string GetProperty(CimInstanceName instanceName, string propertyName)
 {
     GetPropertyOpSettings settings = new GetPropertyOpSettings(instanceName, propertyName);
     return GetProperty(settings);
 }