IPropertyValueStatics::CreateInt64 method (windows.foundation.h)
Creates a new IPropertyValue object that contains the specified signed 64-bit integer value.
Syntax
HRESULT CreateInt64(
[in] INT64 value,
[out, retval] IInspectable **propertyValue
);
Parameters
[in] value
Type: INT64
The signed 64-bit integer value to store.
[out, retval] propertyValue
Type: IInspectable**
A pointer to a new object that contains value. Use the IUnknown::QueryInterface method to get the IPropertyValue interface for the object.
Return value
Type: HRESULT
This method can return one of these values.
Return code | Description |
---|---|
|
The property value was created successfully. |
|
value is NULL. |
|
The IPropertyValue object could not be created. |
Remarks
Use the CreateInt64 method to store a value in an IPropertyValue object. You can add the IPropertyValue object to a property store. Use the GetInt64 method to retrieve the value from the IPropertyValue object.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | windows.foundation.h |