共用方式為


ValueConverter<TSource, TTarget> Class

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'宣告
Public Class ValueConverter(Of TSource, TTarget) _
    Implements IValueConverter
'用途
Dim instance As ValueConverter(Of TSource, TTarget)
public class ValueConverter<TSource, TTarget> : IValueConverter
generic<typename TSource, typename TTarget>
public ref class ValueConverter : IValueConverter
type ValueConverter<'TSource, 'TTarget> =  
    class
        interface IValueConverter
    end
JScript does not support generic types or methods.

Type Parameters

  • TSource
  • TTarget

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.PlatformUI.ValueConverter<TSource, TTarget>
    Microsoft.VisualStudio.PlatformUI.AccessKeyConverter
    Microsoft.VisualStudio.PlatformUI.AccessKeyRemovingConverter
    Microsoft.VisualStudio.PlatformUI.AccessKeyUnderliningConverter
    Microsoft.VisualStudio.PlatformUI.BooleanToFlowDirectionConverter
    Microsoft.VisualStudio.PlatformUI.BooleanToHiddenVisibilityConverter
    Microsoft.VisualStudio.PlatformUI.ColorBrushValueConverter
    Microsoft.VisualStudio.PlatformUI.DeviceToLogicalPixelConverter
    Microsoft.VisualStudio.PlatformUI.GrayscaleImageConverter
    Microsoft.VisualStudio.PlatformUI.HoursToTimeSpanConverter
    Microsoft.VisualStudio.PlatformUI.ImageConverter
    Microsoft.VisualStudio.PlatformUI.IsEqualConverter
    Microsoft.VisualStudio.PlatformUI.MillisecondsToTimeSpanConverter
    Microsoft.VisualStudio.PlatformUI.MinutesToTimeSpanConverter
    Microsoft.VisualStudio.PlatformUI.MultiplicationConverter
    Microsoft.VisualStudio.PlatformUI.NegateBooleanConverter
    Microsoft.VisualStudio.PlatformUI.NotNullConverter
    Microsoft.VisualStudio.PlatformUI.SecondsToTimeSpanConverter
    Microsoft.VisualStudio.PlatformUI.SingleElementToEnumerableConverter<T>
    Microsoft.VisualStudio.PlatformUI.StringToStringWithoutHypertextTagsConverter
    Microsoft.VisualStudio.PlatformUI.StringToXmlDataProviderConverter
    Microsoft.VisualStudio.PlatformUI.VisibleIfNotNullConverter
    Microsoft.VisualStudio.PlatformUI.WindowStateConverter

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ValueConverter<TSource, TTarget> Members

Microsoft.VisualStudio.PlatformUI Namespace