類別 PolicyEngine
這個類別提供所有引擎函式的介面。
摘要
成員 | Description |
---|---|
public const 設定& Get 設定() const | 取得原則引擎 設定。 |
public const std::vector std::shared_ptr<Label ListSensitivityLabels(const std::vector<<std::string>& contentFormats>>) | 根據所提供的 contentFormats 列出與原則引擎相關聯的敏感度標籤。 |
public const std::vector<std::shared_ptr<SensitivityTypesRulePackage>>& ListSensitivityTypes() const | 列出與原則引擎相關聯的敏感度類型。 |
public const std::string& GetMoreInfoUrl() const | 提供 URL 以查閱原則/標籤的詳細資訊。 |
public bool IsLabelingRequired(const std::string& contentFormat) const | 檢查原則是否規定必須根據所提供的 contentFormat 來標記內容。 |
public bool IsDowngradeJustificationRequired() const | 檢查原則是否規定給定標籤敏感度層級降級需要理由訊息。 |
public const std::shared_ptr<Label> GetDefaultSensitivityLabel(const std::string& contentFormat) const | 根據所提供的 contentFormat 取得預設敏感度標籤。 |
public std::shared_ptr<Label> GetLabelById(const std::string& id) const | 根據提供的標識碼取得標籤。 |
public std::shared_ptr<PolicyHandler CreatePolicyHandler> (bool isAuditDiscoveryEnabled, bool isGetSensitivityLabelAuditDiscoveryEnabled) | 建立原則處理程式,以在檔案的執行狀態上執行原則相關函式。 |
public void SendApplicationAuditEvent(const std::string& level, const std::string& eventType, const std::string& eventData) | 將應用程式特定事件記錄到稽核管線。 |
public const std::string& GetTenantId() const | 取得與引擎相關聯的租用戶標識碼。 |
public const std::string& GetPolicyDataXml() const | 取得原則數據 XML,其描述與此原則相關聯的設定、標籤和規則。 |
public const std::string& GetSensitivityTypesDataXml() const | 取得敏感度類型數據 XML,此 XML 描述與此原則相關聯的敏感度類型。 |
public const std::vector<std::p air<std::string, std::string>>& GetCustom 設定() const | 取得自訂設定的清單。 |
public const std::string& GetPolicyFileId() const | 取得原則檔案標識碼。 |
public const std::string& GetSensitivityFileId() const | 取得敏感度檔案標識碼。 |
public bool HasClassificationRules(const std::vector<std::string>& contentFormats) const | 取得原則是否根據所提供的 contentFormats 自動或建議規則。 |
public std::chrono::time_point<std::chrono::system_clock> GetLastPolicyFetchTime() const | 取得上次擷取原則的時間。 |
public uint32_t GetWxpMetadataVersion() const | 取得建議的 WXP (Word、Excel、Powerpoint) 元數據版本,目前為 0,用於共同撰寫啟用版本的舊版 1。 |
public bool HasWorkloadConsent(工作負載工作負載) const | 檢查使用者是否已同意特定工作負載。。 |
成員
Get 設定 函式
取得原則引擎 設定。
傳回:原則引擎設定。
另請參閱:mip::P olicyEngine::設定
ListSensitivityLabels 函式
根據所提供的 contentFormats 列出與原則引擎相關聯的敏感度標籤。
參數:
- contentFormats:contentFormats 格式的向量,以篩選敏感度標籤,例如 “file”、“email” 等。將 contentFormats 設定為空白向量,以依預設格式篩選敏感度卷標。
傳回:敏感度標籤的清單。
ListSensitivityTypes 函式
列出與原則引擎相關聯的敏感度類型。
傳回:敏感度標籤的清單。 如果 LoadSensitivityTypesEnabled 為 false,則為 empty (
另請參閱:PolicyEngine::設定)。
GetMoreInfoUrl 函式
提供 URL 以查閱原則/標籤的詳細資訊。
傳回:字串格式的 URL。
IsLabelingRequired 函式
檢查原則是否規定必須根據所提供的 contentFormat 來標記內容。
參數:
- contentFormat:判斷是否需要卷標時篩選的格式 - 範例:“file”、“email”等。將 contentFormat 設定為空字符串,以判斷預設格式是否需要標籤。
傳回:如果標籤為必要,則為 True,否則為 false。
IsDowngradeJustificationRequired 函式
檢查原則是否規定給定標籤敏感度層級降級需要理由訊息。
傳回:如果需要降級理由,則為 True,否則為 false。
GetDefaultSensitivityLabel 函式
根據所提供的 contentFormat 取得預設敏感度標籤。
參數:
- contentFormat:擷取預設敏感度標籤時要篩選的格式 - 範例:“file”、“email”等。將 contentFormat 設定為空字符串,以擷取預設格式的默認敏感度標籤。
傳回:如果存在,則為默認敏感度標籤,如果沒有設定默認標籤,則為 nullptr。
GetLabelById 函式
根據提供的標識碼取得標籤。
參數:
- id:標籤的識別碼。
傳回:標籤
CreatePolicyHandler 函式
建立原則處理程式,以在檔案的執行狀態上執行原則相關函式。
參數:
- isAuditDiscoveryEnabled:描述是否啟用稽核探索。
傳回:原則處理程式。 應用程式必須保留檔存留期的原則處理程序物件。
SendApplicationAuditEvent 函式
將應用程式特定事件記錄到稽核管線。
參數:
層級:記錄層級:資訊/錯誤/警告。
eventType:事件類型的描述。
eventData:與事件相關聯的數據。
GetTenantId 函式
取得與引擎相關聯的租用戶標識碼。
傳回:租用戶標識碼
GetPolicyDataXml 函式
取得原則數據 XML,其描述與此原則相關聯的設定、標籤和規則。
傳回:原則數據 XML。
GetSensitivityTypesDataXml 函式
取得敏感度類型數據 XML,此 XML 描述與此原則相關聯的敏感度類型。
傳回:敏感度類型數據 XML。
GetCustom 設定 函式
取得自訂設定的清單。
傳回:自定義設定的向量。
GetPolicyFileId 函式
取得原則檔案標識碼。
傳回:代表原則檔案標識符的字串
GetSensitivityFileId 函式
取得敏感度檔案標識碼。
傳回:代表原則檔案標識符的字串
HasClassificationRules 函式
取得原則是否根據所提供的 contentFormats 自動或建議規則。
參數:
- contentFormat:判斷規則是否針對任何提供的格式定義時要考慮的格式向量。 將 contentFormats 設定為空向量,表示提供的 contentFormats 是預設格式。
傳回:布爾值,指出原則中是否有任何自動或建議規則
GetLastPolicyFetchTime 函式
取得上次擷取原則的時間。
傳回:上次擷取原則的時間
GetWxpMetadataVersion 函式
取得建議的 WXP (Word、Excel、Powerpoint) 元數據版本,目前為 0,用於共同撰寫啟用版本的舊版 1。
傳回:Uint32_t不瞭解租用戶針對 WXP 檔案支援的元數據版本。
HasWorkloadConsent 函式
檢查使用者是否已同意特定工作負載。。
傳回:指出同意的Bool。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應