Share via


Méthode IXpsOMCoreProperties ::SetCategory (xpsobjectmodel.h)

Définit la propriété category .

Syntaxe

HRESULT SetCategory(
  [in] LPCWSTR category
);

Paramètres

[in] category

Chaîne à écrire dans la propriété category . Un pointeur NULL efface la propriété de catégorie .

Valeur retournée

Si la méthode réussit, elle retourne S_OK ; sinon, il retourne un code d’erreur HRESULT .

Remarques

La propriété category contient une catégorisation du contenu.

Configuration requise

   
Client minimal pris en charge Windows 7, Windows Vista avec SP2 et Mise à jour de plateforme pour Windows Vista [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2, Windows Server 2008 avec SP2 et Mise à jour de plateforme pour Windows Server 2008 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête xpsobjectmodel.h

Voir aussi

IXpsOMCoreProperties

ECMA-376 standard, formats de fichier Office Open XML

XML Paper Specification