Export (0) Print
Expand All
Expand Minimize

Identity Property

Visual Studio .NET 2003

The identity of the referenced assembly.

[Visual Basic .NET]
Public ReadOnly Property Identity() As String
[Visual Basic 6]
Property Get Identity() As String
HRESULT __stdcall get_Identity(
   /* [out, retval] */ BSTR* retVal
public string Identity {get;}
[JScript .NET]
public function get Identity() : String

Return Value

A string representing the identity of the referenced assembly.


The following sample code lists the value of the Identity property of the assembly reference:

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ .NET project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim vcar As VCAssemblyReference
        prj = DTE.Solution.Projects.Item(1).Object
        vcar = prj.VCReferences.item(1) 
        MsgBox("Identity: " & vcar.Identity)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCActiveXReference Object | VCAssemblyReference Object | VCProjectReference Object | VCReference Object

© 2014 Microsoft