PropertyExists() public method

public PropertyExists ( string key ) : bool
key string
return bool
Beispiel #1
0
        private bool IsMounted(Hal.Device device)
        {
            try {
                if (!device.PropertyExists("volume.mount_point"))
                {
                    return(false);
                }
            } catch {
                return(false);
            }

            string mountPoint = device.GetPropertyString("volume.mount_point");

            return(mountPoint != null && mountPoint != String.Empty);
        }
Beispiel #2
0
 private bool IsIPod(Hal.Device device)
 {
     return(device.PropertyExists("org.podsleuth.version"));
 }