C # in a Nutshell, Second Edition

GuidAttribute CF 1.0

System.Runtime.InteropServices (mscorlib.dll) sealed class

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 GuidAttribute (string guid ); // Public Instance Properties public string Value {get; } }

Hierarchy

System.Object System.Attribute GuidAttribute

Valid On

Assembly, Class, Struct, Enum, Interface, Delegate

Категории