Table of Contents

Class CustomResponseDataPropertyAttribute

Namespace
Visus.AddressValidation
Assembly
Visus.AddressValidation.dll

Marks a property as part of the custom response data for an address validation result, optionally overriding the name used when the property is serialized or mapped.

[ExcludeFromCodeCoverage]
[AttributeUsage(AttributeTargets.Property)]
public sealed class CustomResponseDataPropertyAttribute : Attribute
Inheritance
CustomResponseDataPropertyAttribute
Inherited Members

Constructors

CustomResponseDataPropertyAttribute()

Initializes a new instance of CustomResponseDataPropertyAttribute using the name of the decorated property.

public CustomResponseDataPropertyAttribute()

CustomResponseDataPropertyAttribute(string)

Initializes a new instance of CustomResponseDataPropertyAttribute with an explicit name.

public CustomResponseDataPropertyAttribute(string name)

Parameters

name string

The name to use for the property instead of its declared name.

Exceptions

ArgumentException

Thrown when name is null, empty, or consists only of white-space characters.

Properties

Name

Gets the explicit name to use for the property, or null if the property's declared name should be used.

public string? Name { get; }

Property Value

string