共用方式為


IXpsOMCoreProperties::SetIdentifier 方法 (xpsobjectmodel.h)

設定 標識碼 屬性。

語法

HRESULT SetIdentifier(
  [in] LPCWSTR identifier
);

參數

[in] identifier

要寫入 標識碼 屬性的字串。 NULL 指標會清除標識碼屬性。

傳回值

如果方法成功,則會傳回S_OK;否則,它會傳回 HRESULT 錯誤碼。

備註

標識元屬性是使用者定義或應用程式特定內容中資源的明確參考。

規格需求

需求
最低支援的用戶端 適用於 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 xpsobjectmodel.h

另請參閱

IXpsOMCoreProperties

標準 ECMA-376、Office Open XML 檔格式

XML Paper Specification