Share via


SingletonAttribute Class

Definition

Represents an Attribute that can be placed on a property to specify that the property must bind to a singleton. It's used in convention model builder.

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

Constructors

SingletonAttribute()

Applies to