共用方式為


StandardTableKeyNames.ProjectGuid 欄位

定義

包含錯誤的項目識別碼。

public: System::String ^ ProjectGuid;
std::wstring ProjectGuid;
public const string ProjectGuid;
val mutable ProjectGuid : string
Public Const ProjectGuid As String 

欄位值

備註

預期的數據類型為 Guid,否則, null 如果錯誤屬於多個專案,則為 。

使用 IVsSolution.GetGuidOfProject 從 IVsHierarchy 取得專案的 Guid。

如果您在 或 ITableEntriesSnapshotITableEntry具有Guid成員變數,則會改善效能:

private object boxedProjectGuid = projectGuid;

並傳回 boxedProjectGuid,而不是 projectGuid。

適用於