Table of Contents

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 string

The name of the attribute. This value is assigned to the CustomAttribute.Name property.

theValue string

The 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

string

A string value that specifies the attribute’s name.

Value

Gets the attribute’s value.

public string Value { get; }

Property Value

string

The string that specifies the attribute’s value.