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)

new : 
        type:Type *
        value:string -> AmbientValueAttribute

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: