Condividi tramite


Metodo IXpsOMCoreProperties::SetContentType (xpsobjectmodel.h)

Imposta la proprietà contentType .

Sintassi

HRESULT SetContentType(
  [in] LPCWSTR contentType
);

Parametri

[in] contentType

Stringa da scrivere nella proprietà contentType . Un puntatore NULL cancella la proprietà contentType .

Valore restituito

Se il metodo ha esito positivo, restituisce S_OK; in caso contrario, restituisce un codice di errore HRESULT .

Commenti

La proprietà contentType contiene il tipo di contenuto rappresentato, definito in genere da un utente specifico e dal pubblico previsto. Esempi di valori contentType includono White paper, Security Bulletin e Esame.

Requisiti

   
Client minimo supportato Windows 7, Windows Vista con SP2 e Aggiornamento della piattaforma per Windows Vista [app desktop | App UWP]
Server minimo supportato Windows Server 2008 R2, Windows Server 2008 con SP2 e Platform Update per Windows Server 2008 [app desktop | App UWP]
Piattaforma di destinazione Windows
Intestazione xpsobjectmodel.h

Vedi anche

IXpsOMCoreProperties

Standard ECMA-376, formati di file XML aperti da Office

XML Paper Specification