Поделиться через


VCReferences Interface

A collection of VCReference objects, each representing a reference in the project.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
<GuidAttribute("68317241-C107-4DF7-A8F1-0B4627A3BCC5")> _
Public Interface VCReferences _
    Inherits VCProjectItem, IEnumerable
[GuidAttribute("68317241-C107-4DF7-A8F1-0B4627A3BCC5")]
public interface VCReferences : VCProjectItem, 
    IEnumerable
[GuidAttribute(L"68317241-C107-4DF7-A8F1-0B4627A3BCC5")]
public interface class VCReferences : VCProjectItem, 
    IEnumerable
[<GuidAttribute("68317241-C107-4DF7-A8F1-0B4627A3BCC5")>]
type VCReferences =  
    interface
        interface VCProjectItem
        interface IEnumerable
    end
public interface VCReferences extends VCProjectItem, IEnumerable

The VCReferences type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of VCReference objects in the VCReferences collection.
Public property ItemName Gets the name of the current item in the collection. (Inherited from VCProjectItem.)
Public property ItemName Gets the name of the current item in the collection.
Public property Kind Gets an enumeration indicating the type of object. (Inherited from VCProjectItem.)
Public property Kind Gets an enumeration indicating the type of object.
Public property Parent Gets the immediate parent object of a given object. (Inherited from VCProjectItem.)
Public property Parent Gets the immediate parent object of a given object.
Public property project Gets the VCProject associated with the object. (Inherited from VCProjectItem.)
Public property project Gets the project that contains these references.
Public property References Gets the collection of project references.
Public property VCProjectEngine Gets a pointer to the project engine. (Inherited from VCProjectItem.)
Public property VCProjectEngine Gets a pointer to the project engine.

Top

Methods

  Name Description
Public method AddActiveXReference Adds an ActiveX (COM) reference to the project.
Public method AddActiveXReferenceEx Adds an ActiveX (COM) reference to the project.
Public method AddAssemblyReference Adds an assembly (.NET) reference to the selected project.
Public method AddAssemblyReferenceWithStrongName Adds an assembly (.NET) reference to the selected project using its strong name.
Public method AddAssemblyReferenceWithStrongNameEx Adds an assembly (.NET) reference to the selected project using its strong name.
Public method AddProjectReference Adds a project reference to the project.
Public method AddProjectReferenceByIdentifier Adds an assembly (.NET) reference to the selected project using its unique identifier.
Public method AddProjectReferenceByIdentifierEx Adds an assembly (.NET) reference to the selected project using its unique identifier.
Public method AddReferenceToFile Adds a reference to a file.
Public method AddReferenceToFileEx Adds a reference to a file.
Public method CanAddActiveXReference Returns a value indicating whether to add the given ActiveX (COM) reference.
Public method CanAddAssemblyReference Returns a value indicating whether to add the given assembly (.NET) reference.
Public method CanAddAssemblyReferenceWithStrongName Returns a value indicating whether to add the given assembly (.NET) reference by refering to it by its strong name.
Public method CanAddProjectReference Returns a value indicating whether to add the given project reference.
Public method CanAddProjectReferenceByIdentifier Returns a value indicating whether to add the given project reference by refering to it by its unique identifier.
Public method CanAddReferenceToFile Returns a value indicating whether to add the given file reference.
Public method GetEnumerator() Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public method GetEnumerator() Returns an enumerator for items in the VCReferences collection.
Public method Item Selects an item in the collection.
Public method MatchName(String, Boolean) Matches a specified name to the name of a collection item. (Inherited from VCProjectItem.)
Public method MatchName(String, Boolean) Matches a specified name to the name of a collection item.
Public method RemoveReference Removes the specified reference from the project or references collection.

Top

See Also

Reference

Microsoft.VisualStudio.VCProjectEngine Namespace