Re: guid retrieval of assembly

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Brian Henry (brianiup_at_adelphia.net)
Date: 02/15/04


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!
> >
> >
>
>



Relevant Pages

  • Re: AD Schema extension and ACLing
    ... Function ConvertGuidToDecimalString(ByVal inputGuid As Guid) As String ... Dim sb As New System.Text.StringBuilder ... attributeSecurityGUID or schemaIDGUID requires. ...
    (microsoft.public.windows.server.active_directory)
  • Re: GUID als Funktionsargument =?UTF-8?B?w7xiZXJnZWJlbg==?=
    ... End Sub ... Public Function TestGuidAs String ... | Private Declare Function CoCreateGuid Lib "ole32.dll" As Long ... | Dim stringGUID As String ...
    (microsoft.public.de.access)
  • Re: Get set... what do i use .
    ... Property agendaGuid() As Guid ... Dim m_entrepriseGuid As Guid ... Property entrepriseGuid() As Guid ... Property agendaNomAs String ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Create GUID in Access 2003 Application
    ... ' typedef struct _GUID { ... Public Function CreateGUIDAs String ... Dim sGUID As String 'store result here ... Dim sTemp As String ...
    (microsoft.public.access.forms)
  • RE: Referencing GUID
    ... Dim conn As New ADODB.Connection ... > Hello Alan, ... > | Thread-Topic: Referencing GUID ... > |> Microsoft Online Partner Support ...
    (microsoft.public.access.adp.sqlserver)