Share via


DefaultAttribute Class

Definition

A default value that is assigned to a parameter. This attribute is optional.

public ref class DefaultAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class DefaultAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property)>]
type DefaultAttribute = class
    inherit Attribute
Public NotInheritable Class DefaultAttribute
Inherits Attribute
Inheritance
DefaultAttribute
Attributes

Remarks

This attribute is optional.

Constructors

DefaultAttribute(String, String)

Initializes a new instance of the DefaultAttribute class. Set the default value for an EntityReference.

DefaultAttribute(String)

Initializes a new instance of the DefaultAttribute class. Set the default value of a parameter.

Properties

EntityName

The name of the entity of the value for an EntityReference.

Value

The default value.

Applies to