ValueConverter<TSource, TTarget>.Convert Method (Object, Type, Object, CultureInfo)
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
声明
Public Function Convert ( _
value As Object, _
targetType As Type, _
parameter As Object, _
culture As CultureInfo _
) As Object
用法
Dim instance As ValueConverter
Dim value As Object
Dim targetType As Type
Dim parameter As Object
Dim culture As CultureInfo
Dim returnValue As Object
returnValue = instance.Convert(value, _
targetType, parameter, culture)
public Object Convert(
Object value,
Type targetType,
Object parameter,
CultureInfo culture
)
public:
virtual Object^ Convert(
Object^ value,
Type^ targetType,
Object^ parameter,
CultureInfo^ culture
) sealed
abstract Convert :
value:Object *
targetType:Type *
parameter:Object *
culture:CultureInfo -> Object
override Convert :
value:Object *
targetType:Type *
parameter:Object *
culture:CultureInfo -> Object
public final function Convert(
value : Object,
targetType : Type,
parameter : Object,
culture : CultureInfo
) : Object
Parameters
- value
Type: System.Object
- targetType
Type: System.Type
- parameter
Type: System.Object
- culture
Type: System.Globalization.CultureInfo
Return Value
Type: System.Object
Implements
IValueConverter.Convert(Object, Type, Object, CultureInfo)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ValueConverter<TSource, TTarget> Class