Compartilhar via


Reference.Identity Property

Definition

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

public:
 property System::String ^ Identity { System::String ^ get(); };
public:
 property Platform::String ^ Identity { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(7)]
public string Identity { [System.Runtime.InteropServices.DispId(7)] get; }
[<System.Runtime.InteropServices.DispId(7)>]
[<get: System.Runtime.InteropServices.DispId(7)>]
member this.Identity : string
Public ReadOnly Property Identity As String

Property Value

The string returned depends on the reference type.Reference TypeValue ReturnedAssemblyAssembly name (assembly name without path or extension)COMThe 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.

Attributes

Examples

See the example in Reference.

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.

Applies to