分享方式:


函式類別

C++ Build Insights SDK 與 Visual Studio 2017 和更新版本相容。 若要查看這些版本的檔,請將本文的 Visual Studio 版本 選取器控制項設定為 Visual Studio 2017 或更新版本。 其位於此頁面目錄頂端。

類別 Function 會與 MatchEvent MatchEventInMemberFunction MatchEventStack 和 MatchEventStackInMemberFunction 函式搭配 使用。 使用它來比對 FUNCTION 事件。

語法

class Function : public Activity
{
public:
    Function(const RawEvent& event);

    const char* Name() const;
};

成員

除了來自 Activity 基類的繼承成員 之外,類別 Function 包含下列成員:

建構函式

Function

函式

名稱

函式

Function(const RawEvent& event);

參數

event
FUNCTION 事件。

名稱

const char* Name() const;

傳回值

函式的名稱,以 UTF-8 編碼。