共用方式為


CommandLine 類別

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

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

語法

class CommandLine : public SimpleEvent
{
public:
    CommandLine(const RawEvent& event);

    const wchar_t* Value() const;
};

成員

除了繼承成員的 SimpleEvent 基類之外,類別 CommandLine 包含下列成員:

建構函式

CommandLine

函式

CommandLine

CommandLine(const RawEvent& event);

參數

event
COMMAND_LINE 事件。

const wchar_t Value() const;

傳回值

包含命令列的字串。 值包含從回應檔和環境變數取得的引數,例如 CL、_CL_、Link 和 _LINK_。