共用方式為


類別 FileProfile

FileProfile 類別是使用 Microsoft 資訊保護 作業的根類別。 一般應用程式只需要一個配置檔。

摘要

成員 Description
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) 開始卸載具有指定標識符的檔案引擎。
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) 開始刪除具有指定標識碼的檔案引擎。 將會刪除指定設定檔的所有資料。
public void AcquirePolicyAuthToken(Cloud cloud, const std::shared_ptr<AuthDelegate& authDelegate>) const 觸發原則的驗證回呼。

成員

Get 設定 函式

傳回配置檔設定。

ListEnginesAsync 函式

啟動清單引擎作業。

回:異步控件物件。 FileProfile::Observer 會在成功或失敗時呼叫。

UnloadEngineAsync 函式

開始卸載具有指定標識符的檔案引擎。

回:異步控件物件。 FileProfile::Observer 會在成功或失敗時呼叫。

AddEngineAsync 函式

開始將新的檔案引擎新增至配置檔。

回:異步控件物件。 FileProfile::Observer 會在成功或失敗時呼叫。

DeleteEngineAsync 函式

開始刪除具有指定標識碼的檔案引擎。 將會刪除指定設定檔的所有資料。

回:異步控件物件。 FileProfile::Observer 會在成功或失敗時呼叫。

AcquirePolicyAuthToken 函式

觸發原則的驗證回呼。

參數:

  • 雲端:Azure 雲端

  • authDelegate:將叫用的驗證回呼

MIP 不會使用驗證委派所傳回的值快取或執行任何其他動作。 建議在 MIP 要求驗證權杖之前,未「登入」的應用程式使用此函式。 它可讓應用程式在 MIP 實際需要令牌之前擷取令牌。