GetBool() private method

private GetBool ( ) : bool?
return bool?
示例#1
0
        public bool?GetPropertyBoolValue(PropertyStoreProperty property)
        {
            if (_propertyStore == null)
            {
                return(null);
            }

            using (var propertyValue = new NativeMethods.PROPVARIANT())
            {
                _propertyStore.GetValue(NativeMethods.GetPkey(property), propertyValue);

                return(propertyValue.GetBool());
            }
        }
示例#2
0
        public bool? GetPropertyBoolValue(PropertyStoreProperty property)
        {
            if (_propertyStore == null)
                return null;

            using (var propertyValue = new NativeMethods.PROPVARIANT())
            {
                _propertyStore.GetValue(NativeMethods.GetPkey(property), propertyValue);

                return propertyValue.GetBool();
            }
        }