class PolicyHandler
This class provides an interface for all policy handler functions on a file.
Summary
Members | Descriptions |
---|---|
public std::shared_ptr<ContentLabel> GetSensitivityLabel(const ExecutionState& state) | Get the sensitivity label from existing content. |
public std::vector<std::shared_ptr<Action>> ComputeActions(const ExecutionState& state) | Executes the rules in the handler based on the provided state and returns the list of actions to be executed. |
public void NotifyCommittedActions(const ExecutionState& state) | Called once the computed actions have been applied, and the data committed to disk. |
Members
GetSensitivityLabel function
Get the sensitivity label from existing content.
Parameters:
- state: Current state of the content.
Returns: The label currently applied to the content. If not labeled, returns empty.
ComputeActions function
Executes the rules in the handler based on the provided state and returns the list of actions to be executed.
Parameters:
- state: the current execution state of the content the rules are running on.
Returns: List of actions that should be applied on the content.
NotifyCommittedActions function
Called once the computed actions have been applied, and the data committed to disk.
Parameters:
- state: the current execution state of the content after the actions have been committed.
: This call sends an audit event.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho