Used to supply the GUID of a class, interface or an entire type library. The string passed to the attribute must be a format that is an acceptable constructor argument for the type Guid. To avoid conflicts with the type Guid the long name "GuidAttribute" should be used explicitly.
Object
Attribute
GuidAttribute
[Visual Basic] Public Class GuidAttribute Inherits Attribute [C#] public class GuidAttribute : Attribute [C++] public __gc class GuidAttribute : public Attribute [JScript] public class GuidAttribute extends Attribute
Can be used to attribute assemblies, classes, interfaces, structures, enumerations, or delegates.
For example:
[C#]
[GuidAttribute("9ED54F84-A89D-4fcd-A854-44251E925F09")]
Namespace: System.Runtime.InteropServices
Assembly: mscorlib.dll
GuidAttribute Members | System.Runtime.InteropServices Namespace