Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
Available since 1.1
Return to top
Show:
© 2017 Microsoft