UsableDuringInitializationAttribute(Boolean) Constructor

Definitie

Initialiseert een nieuw exemplaar van de UsableDuringInitializationAttribute klasse.

public:
 UsableDuringInitializationAttribute(bool usable);
public UsableDuringInitializationAttribute(bool usable);
new System.Windows.Markup.UsableDuringInitializationAttribute : bool -> System.Windows.Markup.UsableDuringInitializationAttribute
Public Sub New (usable As Boolean)

Parameters

usable
Boolean

Hiermee definieert u of de bijbehorende klasse bruikbaar is tijdens de initialisatie.

Opmerkingen

Dit kenmerk neemt over. Voor de eerste toepassing zou u meestal van toepassing zijn als [UsableDuringInitialization(true)], maar u kunt vervolgens instellen [UsableDuringInitialization(false)] op een afgeleide klasse om de rapportage van afgeleide klassen van het gedrag te wijzigen.

Van toepassing op