Class GuidAttribute
Supplies an explicit System.Guid when an automatic GUID is undesirable.
Inherited Members
Namespace: System.Runtime.InteropServices
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Interface|AttributeTargets.Delegate, Inherited = false)]
public sealed class GuidAttribute : Attribute
Constructors
GuidAttribute(string)
Initializes a new instance of the GuidAttribute class with the specified GUID.
Declaration
public GuidAttribute(string guid)
Parameters
Type | Name | Description |
---|---|---|
string | guid | The Guid to be assigned. |
Properties
Value
Gets the Guid of the class.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
string | The Guid of the class. |