ValueConversionAttribute Constructor (Type, Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the ValueConversionAttribute class with the specified source type and target type.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public ValueConversionAttribute(
	Type sourceType,
	Type targetType
)

Parameters

sourceType
Type: System.Type

The type this converter converts.

targetType
Type: System.Type

The type this converter converts to.

Exception Condition
ArgumentNullException

The sourceType parameter cannot be null.

ArgumentNullException

The targetType parameter cannot be null.

.NET Framework
Available since 3.0
Return to top
Show: