BindConverter.FormatValue Method
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.
Overloads
FormatValue(Boolean, CultureInfo) |
Formats the provided |
FormatValue(Nullable<DateTimeOffset>, String, CultureInfo) |
Formats the provided |
FormatValue(Nullable<DateTime>, String, CultureInfo) |
Formats the provided |
FormatValue(Nullable<DateOnly>, String, CultureInfo) |
Formats the provided |
FormatValue(DateTimeOffset, String, CultureInfo) |
Formats the provided |
FormatValue(DateTime, String, CultureInfo) |
Formats the provided |
FormatValue(DateOnly, String, CultureInfo) |
Formats the provided |
FormatValue(TimeOnly, CultureInfo) |
Formats the provided |
FormatValue(String, CultureInfo) |
Formats the provided |
FormatValue(Single, CultureInfo) |
Formats the provided |
FormatValue(Nullable<TimeOnly>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<Single>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<Int64>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<Int32>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<TimeOnly>, String, CultureInfo) |
Formats the provided |
FormatValue(Nullable<Int16>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<Decimal>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<DateTimeOffset>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<DateTime>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<DateOnly>, CultureInfo) |
Formats the provided |
FormatValue(Nullable<Boolean>, CultureInfo) |
Formats the provided |
FormatValue(Int64, CultureInfo) |
Formats the provided |
FormatValue(Int32, CultureInfo) |
Formats the provided |
FormatValue(Int16, CultureInfo) |
Formats the provided |
FormatValue(Double, CultureInfo) |
Formats the provided |
FormatValue(Decimal, CultureInfo) |
Formats the provided |
FormatValue(DateTimeOffset, CultureInfo) |
Formats the provided |
FormatValue(DateTime, CultureInfo) |
Formats the provided |
FormatValue(DateOnly, CultureInfo) |
Formats the provided |
FormatValue(Nullable<Double>, CultureInfo) |
Formats the provided |
FormatValue(TimeOnly, String, CultureInfo) |
Formats the provided |
FormatValue<T>(T, CultureInfo) |
Formats the provided |
FormatValue(Boolean, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static bool FormatValue (bool value, System.Globalization.CultureInfo culture = default);
public static bool FormatValue (bool value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : bool * System.Globalization.CultureInfo -> bool
Public Shared Function FormatValue (value As Boolean, Optional culture As CultureInfo = Nothing) As Boolean
Parameters
- value
- Boolean
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<DateTimeOffset>, String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateTimeOffset? value, string format, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (DateTimeOffset? value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<DateTimeOffset> * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateTimeOffset), format As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- Nullable<DateTimeOffset>
The value to format.
- format
- String
The format to use. Provided to ToString(String, IFormatProvider).
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<DateTime>, String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateTime? value, string format, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (DateTime? value, string? format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<DateTime> * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateTime), format As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- format
- String
The format to use. Provided to ToString(String, IFormatProvider).
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<DateOnly>, String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string? FormatValue (DateOnly? value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<DateOnly> * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateOnly), format As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- format
- String
The format to use. Provided to ToString(String, IFormatProvider).
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(DateTimeOffset, String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateTimeOffset value, string format, System.Globalization.CultureInfo culture = default);
public static string FormatValue (DateTimeOffset value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : DateTimeOffset * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateTimeOffset, format As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- DateTimeOffset
The value to format.
- format
- String
The format to use. Provided to ToString(String, IFormatProvider).
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(DateTime, String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateTime value, string format, System.Globalization.CultureInfo culture = default);
public static string FormatValue (DateTime value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : DateTime * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateTime, format As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- DateTime
The value to format.
- format
- String
The format to use. Provided to ToString(String, IFormatProvider).
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(DateOnly, String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateOnly value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : DateOnly * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateOnly, format As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- DateOnly
The value to format.
- format
- String
The format to use. Provided to ToString(String, IFormatProvider).
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(TimeOnly, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (TimeOnly value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : TimeOnly * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As TimeOnly, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- TimeOnly
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (string value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (string? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- String
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Single, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (float value, System.Globalization.CultureInfo culture = default);
public static string FormatValue (float value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : single * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Single, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- Single
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<TimeOnly>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string? FormatValue (TimeOnly? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<TimeOnly> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of TimeOnly), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<Single>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (float? value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (float? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<single> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Single), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<Int64>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (long? value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (long? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<int64> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Long), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<Int32>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (int? value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (int? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<int> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Integer), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<TimeOnly>, String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string? FormatValue (TimeOnly? value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<TimeOnly> * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of TimeOnly), format As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- format
- String
The format to use. Provided to ToString(String, IFormatProvider).
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<Int16>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string? FormatValue (short? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<int16> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Short), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<Decimal>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (decimal? value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (decimal? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<decimal> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Decimal), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<DateTimeOffset>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateTimeOffset? value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (DateTimeOffset? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<DateTimeOffset> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateTimeOffset), Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- Nullable<DateTimeOffset>
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<DateTime>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateTime? value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (DateTime? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<DateTime> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateTime), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<DateOnly>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string? FormatValue (DateOnly? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<DateOnly> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of DateOnly), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<Boolean>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static bool? FormatValue (bool? value, System.Globalization.CultureInfo culture = default);
public static bool? FormatValue (bool? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<bool> * System.Globalization.CultureInfo -> Nullable<bool>
Public Shared Function FormatValue (value As Nullable(Of Boolean), Optional culture As CultureInfo = Nothing) As Nullable(Of Boolean)
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Int64, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (long value, System.Globalization.CultureInfo culture = default);
public static string FormatValue (long value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : int64 * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Long, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- Int64
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Int32, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (int value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (int value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : int * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Integer, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- Int32
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Int16, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (short value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : int16 * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Short, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- Int16
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Double, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (double value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (double value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : double * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Double, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- Double
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Decimal, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (decimal value, System.Globalization.CultureInfo culture = default);
public static string FormatValue (decimal value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : decimal * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Decimal, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- Decimal
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(DateTimeOffset, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateTimeOffset value, System.Globalization.CultureInfo culture = default);
public static string FormatValue (DateTimeOffset value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : DateTimeOffset * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateTimeOffset, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- DateTimeOffset
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(DateTime, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateTime value, System.Globalization.CultureInfo culture = default);
public static string FormatValue (DateTime value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : DateTime * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateTime, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- DateTime
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(DateOnly, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (DateOnly value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : DateOnly * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As DateOnly, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- DateOnly
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(Nullable<Double>, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
for inclusion in an attribute.
public static string FormatValue (double? value, System.Globalization.CultureInfo culture = default);
public static string? FormatValue (double? value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : Nullable<double> * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As Nullable(Of Double), Optional culture As CultureInfo = Nothing) As String
Parameters
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue(TimeOnly, String, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static string FormatValue (TimeOnly value, string format, System.Globalization.CultureInfo? culture = default);
static member FormatValue : TimeOnly * string * System.Globalization.CultureInfo -> string
Public Shared Function FormatValue (value As TimeOnly, format As String, Optional culture As CultureInfo = Nothing) As String
Parameters
- value
- TimeOnly
The value to format.
- format
- String
The format to use. Provided to ToString(String, IFormatProvider).
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.
Applies to
FormatValue<T>(T, CultureInfo)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Formats the provided value
as a String.
public static object FormatValue<T> (T value, System.Globalization.CultureInfo culture = default);
public static object? FormatValue<T> (T value, System.Globalization.CultureInfo? culture = default);
static member FormatValue : 'T * System.Globalization.CultureInfo -> obj
Public Shared Function FormatValue(Of T) (value As T, Optional culture As CultureInfo = Nothing) As Object
Type Parameters
- T
Parameters
- value
- T
The value to format.
- culture
- CultureInfo
The CultureInfo to use while formatting. Defaults to CurrentCulture.
Returns
The formatted value.