类 FileProfile
FileProfile 类是使用 Microsoft 信息保护 操作的根类。 典型的应用程序只需要一个配置文件。
总结
成员 | 说明 |
---|---|
public const 设置& Get设置() const | 返回配置文件设置。 |
public std::shared_ptr<AsyncControl> ListEnginesAsync(const std::shared_ptr<void>& context) | 启动列表引擎操作。 |
public std::shared_ptr<AsyncControl> UnloadEngineAsync(const std::string& id, const std::shared_ptr<void>& context) | 开始使用给定 ID 卸载文件引擎。 |
public std::shared_ptr<AsyncControl> AddEngineAsync(const FileEngine::设置& settings, const std::shared_ptr<void>& context) | 开始向配置文件添加新文件引擎。 |
public std::shared_ptr<AsyncControl> DeleteEngineAsync(const std::string& id, const std::shared_ptr<void>& context) | 开始删除具有给定 ID 的文件引擎。 将删除给定配置文件的所有数据。 |
public void AcquirePolicyAuthToken(Cloud, const std::shared_ptr<AuthDelegate>& authDelegate) const | 触发策略的身份验证回调。 |
成员
GetSettings 函数
返回配置文件设置。
ListEnginesAsync 函数
启动列表引擎操作。
返回结果:异步控制对象。 成功或失败时将调用 FileProfile::Observer。
UnloadEngineAsync 函数
开始使用给定 ID 卸载文件引擎。
返回结果:异步控制对象。 成功或失败时将调用 FileProfile::Observer。
AddEngineAsync 函数
开始向配置文件添加新文件引擎。
返回结果:异步控制对象。 成功或失败时将调用 FileProfile::Observer。
DeleteEngineAsync 函数
开始删除具有给定 ID 的文件引擎。 将删除给定配置文件的所有数据。
返回结果:异步控制对象。 成功或失败时将调用 FileProfile::Observer。
AcquirePolicyAuthToken 函数
触发策略的身份验证回调。
参数:
cloud:Azure 云
authDelegate:将被调用的身份验证回调
MIP 不会使用身份验证委托返回的值缓存或执行任何其他操作。 对于在 MIP 请求身份验证令牌之后才“登录”的应用程序,建议使用此函数。 它允许应用程序在 MIP 实际需要令牌之前提取令牌。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈