GetUInt32() private méthode

private GetUInt32 ( ) : uint?
Résultat uint?
Exemple #1
0
        public uint?GetPropertyUInt32Value(PropertyStoreProperty property)
        {
            if (_propertyStore == null)
            {
                return(null);
            }

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

                return(propertyValue.GetUInt32());
            }
        }
Exemple #2
0
        public uint? GetPropertyUInt32Value(PropertyStoreProperty property)
        {
            if (_propertyStore == null)
                return null;

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

                return propertyValue.GetUInt32();
            }
        }