共用方式為


VCReference 介面

代表專案中的參考

命名空間:  Microsoft.VisualStudio.VCProjectEngine
組件:  Microsoft.VisualStudio.VCProjectEngine (在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

語法

'宣告
<GuidAttribute("48453685-92CE-43E3-8033-E07E8CD6E619")> _
Public Interface VCReference _
    Inherits VCProjectItem
[GuidAttribute("48453685-92CE-43E3-8033-E07E8CD6E619")]
public interface VCReference : VCProjectItem
[GuidAttribute(L"48453685-92CE-43E3-8033-E07E8CD6E619")]
public interface class VCReference : VCProjectItem
[<GuidAttribute("48453685-92CE-43E3-8033-E07E8CD6E619")>]
type VCReference =  
    interface
        interface VCProjectItem
    end
public interface VCReference extends VCProjectItem

VCReference 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 AssemblyName 取得這個專案的組件名稱。
公用屬性 BuildNumber 參考組件的組建編號。
公用屬性 CopyLocal 取得或設定值,指出是否要自動複製到目標目錄的參考。
公用屬性 CopyLocalDependencies 基礎架構。僅限 Microsoft 內部使用。
公用屬性 CopyLocalSatelliteAssemblies 基礎架構。僅限 Microsoft 內部使用。
公用屬性 Culture 取得選取參考的文化特性。
公用屬性 Description 取得或設定字串,該字串表示物件的描述。
公用屬性 FullPath 取得參考的組件的完整路徑。
公用屬性 Identity 參考的組件識別。
公用屬性 ItemName 取得集合中目前項目的名稱。
公用屬性 Kind 取得列舉型別,指出物件型別。
公用屬性 Label 取得參考的組件的顯示名稱。
公用屬性 majorVersion 取得參考的組件的主要版本。
公用屬性 MinFrameworkVersion 取得的最小版本.NET Framework所需的專案。
公用屬性 minorVersion 取得參考的組件的次要版本。
公用屬性 Name 取得或設定物件的名稱。
公用屬性 Parent 取得指定物件的直接上層父物件。
公用屬性 project 取得與物件關聯的 VCProject 物件。
公用屬性 PublicKeyToken 取得所參考組件的公開金鑰語彙基元。
公用屬性 Reference 取得與此組態相關聯的參考。
公用屬性 RevisionNumber 取得選定參考的修訂編號。
公用屬性 StrongName 取得值,指出已選取的參考具有強式名稱也一樣。
公用屬性 SubType 基礎架構。僅限 Microsoft 使用。不要使用。
公用屬性 UseDependenciesInBuild 設定或取得是否要在組建中使用的組件。
公用屬性 UseInBuild 設定或取得是否應該在組建中使用參考的組件。
公用屬性 VCProjectEngine 取得專案引擎的指標。
公用屬性 VCReferences 取得所選取專案的參考集合。
公用屬性 Version 取得選定參考的版本。

回頁首

方法

  名稱 說明
公用方法 MatchName 比對指定的名稱與集合項目的名稱。
公用方法 Remove 將指定的專案從方案中移除。

回頁首

備註

Visual C++支援下列的參考型別:

  • .NET 組件

  • 專案 (。NET 和非位。NET 組件)

  • COM 物件

不像Visual Basic和Visual C#, Visual C++會區別專案參考和組件參考,也就是Visual C++支援非位。NET 組件專案參考。

請參閱

參考

Microsoft.VisualStudio.VCProjectEngine 命名空間