ValueConversionAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |