Udostępnij za pośrednictwem


VCReferences Interface

Definition

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

public interface class VCReferences : Microsoft::VisualStudio::VCProjectEngine::VCProjectItem, System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("692EF4E6-8596-4920-9558-66E69B9590DC")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface VCReferences : Microsoft.VisualStudio.VCProjectEngine.VCProjectItem, System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("692EF4E6-8596-4920-9558-66E69B9590DC")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type VCReferences = interface
    interface VCProjectItem
    interface IEnumerable
Public Interface VCReferences
Implements IEnumerable, VCProjectItem
Attributes
Implements

Properties

Count

Gets the number of VCReference objects in the VCReferences collection.

ItemName

Gets the name of the current item in the collection.

Kind

Gets an enumeration indicating the type of object.

Parent

Gets the immediate parent object of a given object.

project

Gets the project that contains these references.

References

Gets the collection of project references.

VCProjectEngine

Gets a pointer to the project engine.

Methods

AddActiveXReference(String, Int32, Int32, Int32, String)

Adds an ActiveX (COM) reference to the project.

AddActiveXReferenceEx(String, Int32, Int32, Int32, String, Boolean)

Adds an ActiveX (COM) reference to the project.

AddAssemblyReference(String)

Adds an assembly (.NET) reference to the selected project.

AddAssemblyReferenceWithStrongName(String, String)

Adds an assembly (.NET) reference to the selected project using its strong name.

AddAssemblyReferenceWithStrongNameEx(String, String, Boolean)

Adds an assembly (.NET) reference to the selected project using its strong name.

AddProjectReference(Object)

Adds a project reference to the project.

AddProjectReferenceByIdentifier(String)

Adds an assembly (.NET) reference to the selected project using its unique identifier.

AddProjectReferenceByIdentifierEx(String, Boolean)

Adds an assembly (.NET) reference to the selected project using its unique identifier.

AddReferenceToFile(String)

Adds a reference to a file.

AddReferenceToFileEx(String, Boolean)

Adds a reference to a file.

AddSdkReference(String)
AddSharedProjectReference(String, Boolean)
AddWinRTReference(String)
CanAddActiveXReference(String, Int32, Int32, Int32, String)

Returns a value indicating whether to add the given ActiveX (COM) reference.

CanAddAssemblyReference(String)

Returns a value indicating whether to add the given assembly (.NET) reference.

CanAddAssemblyReferenceWithStrongName(String, String)

Returns a value indicating whether to add the given assembly (.NET) reference by refering to it by its strong name.

CanAddProjectReference(Object)

Returns a value indicating whether to add the given project reference.

CanAddProjectReferenceByIdentifier(String)

Returns a value indicating whether to add the given project reference by refering to it by its unique identifier.

CanAddReferenceToFile(String)

Returns a value indicating whether to add the given file reference.

CanAddSdkReference(String)
CanAddWinRTReference(String)
GetEnumerator()

Returns an enumerator for items in the VCReferences collection.

GetReferencesOfType(UInt32)
Item(Object)

Selects an item in the collection.

MatchName(String, Boolean)

Matches a specified name to the name of a collection item.

RemoveReference(Object)

Removes the specified reference from the project or references collection.

Applies to