Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPropertyValueStatics::CreateInt32 method

Creates a new IPropertyValue object that contains the specified signed 32-bit integer value.

Syntax


HRESULT CreateInt32(
  INT32 value,
  [out]  IPropertyValue **ppValue
);

Parameters

value

Type: INT32

The signed 32-bit integer value to store.

ppValue [out]

Type: IPropertyValue**

A pointer to a new object that contains value.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The property value was created successfully.

E_POINTER

value is NULL.

E_OUTOFMEMORY

The IPropertyValue object could not be created.

 

Remarks

Use the CreateInt32 method to store a value in an IPropertyValue object. You can add the IPropertyValue object to a property store. Use the GetInt32 method to retrieve the value from the IPropertyValue object.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.h

IDL

Windows.Foundation.idl

See also

IPropertyValue::GetInt32
IPropertyValueStatics

 

 

Community Additions

Show:
© 2014 Microsoft. All rights reserved.