StandardTableKeyNames.ProjectGuid 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
包含錯誤的項目識別碼。
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。
如果您在 或 ITableEntriesSnapshot中ITableEntry具有Guid成員變數,則會改善效能:
private object boxedProjectGuid = projectGuid;
並傳回 boxedProjectGuid,而不是 projectGuid。