Udostępnij za pośrednictwem


Reference2.Identity Property

Gets the unique identifier of the reference. Read-only.

Namespace:  VSLangProj2
Assembly:  VSLangProj2 (in VSLangProj2.dll)

Syntax

'Declaration
ReadOnly Property Identity As String
'Usage
Dim instance As Reference2 
Dim value As String 

value = instance.Identity
string Identity { get; }
property String^ Identity {
    String^ get ();
}
function get Identity () : String

Property Value

Type: System.String
The string returned depends on the reference type.

Reference Type

Value Returned

Assembly

Assembly name (assembly name without path or extension)

COM

The format is:

"GUID\major.minor\localeid\wrappertool"

For example,

"{00000205-0000-0010-8000-00AA006D2EA4}\2.5\409\tlbimp"

is returned for ActiveX Data Objects 2.5.

Implements

Reference.Identity

Remarks

All components have a unique identifier. The Identity property gets that information. This property is unique for each reference, as an exception is raised if you attempt to add a reference with the same identity as a reference that is already in the collection. This property is suitable for indexing the References collection, using the Item method.

.NET Framework Security

See Also

Reference

Reference2 Interface

Reference2 Members

Identity Overload

VSLangProj2 Namespace