Export (0) Print
Expand All

AmbientValueAttribute Constructor (Type, String)

Initializes a new instance of the AmbientValueAttribute class, given the value and its type.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public:
AmbientValueAttribute(
	Type^ type, 
	String^ value
)

Parameters

type
Type: System::Type

The Type of the value parameter.

value
Type: System::String

The value for this attribute.

The following code example demonstrates using AmbientValueAttribute to enforce ambient behavior for a property called AlertForeColor. For a full code listing, see How to: Apply Attributes in Windows Forms Controls.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft