Name

GuidAttribute

Synopsis

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; } 
}

Hierarchy

System.ObjectSystem.AttributeGuidAttribute

Valid On

Assembly, Class, Struct, Enum, Interface, Delegate

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.