Uredi

ValueConversionAttribute Class

Definition

Represents an attribute that allows the author of a value converter to specify the data types involved in the implementation of the converter.

public ref class ValueConversionAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class ValueConversionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ValueConversionAttribute = class
    inherit Attribute
Public NotInheritable Class ValueConversionAttribute
Inherits Attribute
Inheritance
ValueConversionAttribute
Attributes

Constructors

Name Description
ValueConversionAttribute(Type, Type)

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

Properties

Name Description
ParameterType

Gets or sets the type of the optional value converter parameter object.

SourceType

Gets the type this converter converts.

TargetType

Gets the type this converter converts to.

TypeId

Gets the unique identifier of this ValueConversionAttribute instance.

Methods

Name Description
GetHashCode()

Returns the hash code for this instance of ValueConversionAttribute.

Applies to

See also