O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required