This is an attribute in the Assembly Manifest. You get to it by getting an
instance of the System.Reflection.Assembly class, using:
System.Reflection.Assembly assembly = Assembly.GetExecutingAssembly();
Then you get an Attribute from the assembly using the
Assembly.GetCustomAttributes method:
((System.Runtime.InteropServices.GuidAttribute)assembly.GetCustomAttributes(
typeof(System.Runtime.InteropServices.GuidAttribute),false)[0]).Value
Note that you can use this method to get any of the various attributes in
the Assembly, as long as you know the type of the attribute, and what
member of the class you want to get at.
--
HTH,
Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com
A pea rants as candy be sieving.
Ron M. Newman said:
Hi: How do I get the GUID string out of an assembly? (I have it loaded
and referenced from an Assembly obect).
-Ron