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