Méthode IPropertyValueStatics ::CreateSize (windows.foundation.h)

Crée un objet IPropertyValue qui contient la valeur Size spécifiée.

Syntaxe

HRESULT CreateSize(
  [in]          ABI::Windows::Foundation::Size value,
  [out, retval] IInspectable                   **propertyValue
);

Paramètres

[in] value

Type : Taille

Valeur à stocker.

[out, retval] propertyValue

Type : IInspectable**

Pointeur vers un nouvel objet qui contient une valeur. Utilisez la méthode IUnknown ::QueryInterface pour obtenir l’interface IPropertyValue pour l’objet .

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

Condition requise Valeur
Client minimal pris en charge Windows 8
Serveur minimal pris en charge Windows Server 2012
Plateforme cible Windows
En-tête windows.foundation.h

Voir aussi

IPropertyValue ::GetSize

IPropertyValueStatics