Class CustomAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Specifies a custom attribute for a class or a class member.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface, Inherited = true, AllowMultiple = true)]
public sealed class CustomAttribute : Attribute
- Inheritance
-
CustomAttribute
- Inherited Members
Constructors
CustomAttribute(string, string)
Initializes a new instance of the CustomAttribute class with the specified name and value.
public CustomAttribute(string theName, string theValue)
Parameters
theName
stringThe name of the attribute. This value is assigned to the CustomAttribute.Name property.
theValue
stringThe value of the attribute. This value is assigned to the CustomAttribute.Value property.
Properties
Name
Gets the attribute’s name.
public string Name { get; }
Property Value
Value
Gets the attribute’s value.
public string Value { get; }