Re: guid retrieval of assembly
From: Brian Henry (brianiup_at_adelphia.net)
Date: 02/15/04
- Next message: Tom Leylan: "Re: Image Question"
- Previous message: Wayne M J: "Returning UDP traffic in real-time and control latency"
- In reply to: Scott: "Re: guid retrieval of assembly"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 14 Feb 2004 19:48:25 -0500
thanks! that worked good
"Scott" <scottaf@yahoo.com> wrote in message
news:eTe%23jyO8DHA.2392@TK2MSFTNGP11.phx.gbl...
> Dim a As Reflection.Assembly =
> Reflection.Assembly.LoadFrom("fileLocationGoesHere")
> Dim i As Integer, guid As String
> For i = 0 To a.GetCustomAttributes(False).GetUpperBound(0)
> Dim obj As Object = a.GetCustomAttributes(False).GetValue(i)
> If TypeOf (obj) Is System.Runtime.InteropServices.GuidAttribute Then
> guid = CType(obj,
> System.Runtime.InteropServices.GuidAttribute).Value
> End If
> Next
>
>
> "Brian Henry" <brianiup[nospam]@adelphia.net> wrote in message
> news:urS9uVN8DHA.2752@TK2MSFTNGP09.phx.gbl...
> > Is there anyway to retrieve the GUID code of an assembly for use in the
> > application as a unique identifier? thanks!
> >
> >
>
>
- Next message: Tom Leylan: "Re: Image Question"
- Previous message: Wayne M J: "Returning UDP traffic in real-time and control latency"
- In reply to: Scott: "Re: guid retrieval of assembly"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|