FileProtectionInfo.IsProtectWhileOpenSupported 屬性

定義

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) 和支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,而且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 可簡化組態設定,並提供一組進階功能。

判斷您的應用程式是否可以在檔案開啟時保護檔案。

public:
 property bool IsProtectWhileOpenSupported { bool get(); };
bool IsProtectWhileOpenSupported();
public bool IsProtectWhileOpenSupported { get; }
var boolean = fileProtectionInfo.isProtectWhileOpenSupported;
Public ReadOnly Property IsProtectWhileOpenSupported As Boolean

屬性值

Boolean

bool

如果應用程式在開啟時可以保護檔案,則為true;如果裝置不支援該功能,則為false

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.16299.0 引進)
Windows Mobile Extension SDK (已於 10.0.16299.0 引進)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (已於 v5.0 引進)

備註

如果此屬性傳回 true,您可以在檔案開啟時保護檔案。

如果使用者開啟未受到保護的檔案,並嘗試將企業保護的資訊貼到其中,這非常有用。 您可以保護開啟的檔案,並儲存使用者不必回應提示,或根據原則強制執行層級,將它們儲存,使其無法完全貼上內容。

適用於