We recommend using Visual Studio 2017

SqlSmoObject.IAlienObject.GetUrn Method

Gets the Unified Resource Name of the object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Private Function GetUrn As Urn Implements IAlienObject.GetUrn
Dim instance As SqlSmoObject
Dim returnValue As Urn

returnValue = CType(instance, IAlienObject).GetUrn()

Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.Urn
A Urn which represents the Unified Resource Name of the object..