HoursToTimeSpanConverter.Convert Method (UInt32, Object, CultureInfo)
This member overrides ValueConverter<TSource, TTarget>.Convert(TSource, Object, CultureInfo).
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'宣言
Protected Overrides Function Convert ( _
hours As UInteger, _
parameter As Object, _
culture As CultureInfo _
) As TimeSpan
'使用
Dim hours As UInteger
Dim parameter As Object
Dim culture As CultureInfo
Dim returnValue As TimeSpan
returnValue = Me.Convert(hours, parameter, _
culture)
protected override TimeSpan Convert(
uint hours,
Object parameter,
CultureInfo culture
)
protected:
virtual TimeSpan Convert(
unsigned int hours,
Object^ parameter,
CultureInfo^ culture
) override
abstract Convert :
hours:uint32 *
parameter:Object *
culture:CultureInfo -> TimeSpan
override Convert :
hours:uint32 *
parameter:Object *
culture:CultureInfo -> TimeSpan
protected override function Convert(
hours : uint,
parameter : Object,
culture : CultureInfo
) : TimeSpan
Parameters
- hours
Type: System.UInt32
- parameter
Type: System.Object
- culture
Type: System.Globalization.CultureInfo
Return Value
Type: System.TimeSpan
.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
HoursToTimeSpanConverter Class