March 2002
Intermediate to advanced
864 pages
31h 8m
English
GuidAttribute
This attribute is used to specify the GUID of assemblies, modules, or
types you expose to COM. If you don’t use this attribute to specify
a GUID, one is automatically generated.
When you apply this attribute, use its full name
([GuidAttribute()] rather than
[Guid()]) to avoid clashes with the
System.Guid type.
public sealed class GuidAttribute : Attribute { // Public Constructors public method GuidAttribute(string guid); // Public Instance Properties public field string Value{get; } }
System.Object→System.Attribute→GuidAttribute
Assembly, Class, Struct, Enum, Interface, Delegate