类 ProtectionProfile
ProtectionProfile 是用于执行保护操作的根类。 在执行任何保护操作之前,应用程序需要先创建 ProtectionProfile
总结
成员 | 说明 |
---|---|
public const 设置& Get设置() const | 获取 ProtectionProfile 在其初始化期间及其整个生存期内使用的设置。 |
public std::shared_ptr<AsyncControl> ListEnginesAsync(const std::shared_ptr<void>& context) | 启动列表引擎操作。 |
public std::vector<std::string> ListEngines() | 列出引擎。 |
public std::shared_ptr<AsyncControl> AddEngineAsync(const ProtectionEngine::设置& settings, const std::shared_ptr<void>& context) | 开始向配置文件添加新的保护引擎。 |
public std::shared_ptr<ProtectionEngine AddEngine>(const ProtectionEngine::设置& settings) | 向配置文件添加新的保护引擎。 |
public std::shared_ptr<AsyncControl> DeleteEngineAsync(const std::string& engineId, const std::shared_ptr<void>& context) | 开始删除具有给定 ID 的保护引擎。 将删除给定引擎的所有数据。 |
public void DeleteEngine(const std::string& engineId) | 删除具有给定 ID 的保护引擎。 将删除给定引擎的所有数据。 |
成员
GetSettings 函数
获取 ProtectionProfile 在其初始化期间及其整个生存期内使用的设置。
返回:在初始化期间和整个生命周期内,ProtectionProfile 使用的设置
ListEnginesAsync 函数
启动列表引擎操作。
参数:
- context:将不透明地传回观察程序客户端上下文
返回结果:异步控制对象。 成功或失败时将调用 ProtectionProfile::Observer。
ListEngines 函数
列出引擎。
返回:缓存的引擎 ID
AddEngineAsync 函数
开始向配置文件添加新的保护引擎。
参数:
settings:指定引擎设置的 mip::P rotectionEngine::设置 对象。
context:将不透明地传回观察程序客户端上下文
返回结果:异步控制对象。 成功或失败时将调用 ProtectionProfile::Observer。
AddEngine 函数
向配置文件添加新的保护引擎。
参数:
- settings:指定引擎设置的 mip::P rotectionEngine::设置 对象。
返回:新建的 ProtectionEngine
DeleteEngineAsync 函数
开始删除具有给定 ID 的保护引擎。 将删除给定引擎的所有数据。
参数:
id:唯一的引擎 ID。
context:将不透明地传回观察程序客户端上下文
返回结果:异步控制对象。 成功或失败时将调用 ProtectionProfile::Observer。
DeleteEngine 函数
删除具有给定 ID 的保护引擎。 将删除给定引擎的所有数据。
参数:
- id:唯一的引擎 ID。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈