Specifies that the property that this attribute is assigned to can be initialized by using a nondefault constructor parameter of the specified name. This information is primarily for serialization.
Assembly: WindowsBase (in WindowsBase.dll)
'Declaration <AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := False, _ Inherited := False)> _ Public NotInheritable Class ConstructorArgumentAttribute _ Inherits Attribute 'Usage Dim instance As ConstructorArgumentAttribute
This attribute specifies that the associated property can be initialized by a constructor parameter and should be ignored for serialization if the constructor is used to construct the instance. This provides better round trip representations for markup extensions that were originally created by markup extension constructor syntax rather than default constructor plus specific attributes.
In order to be valid, a markup extension public nondefault constructor must support at least one parameter. The name of the parameter must correspond to a read/write property that might otherwise be used as a serialization choice. You use this attribute to create the correspondence between the name of the parameter in the constructor by applying this attribute to the definition of the connecting read/write property.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.