ToStringHelper.ToStringWithCulture Method

Returns a String that represents the specified Object.

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating (in Microsoft.VisualStudio.TextTemplating.dll)

Syntax

'宣言
Public Shared Function ToStringWithCulture ( _
    objectToConvert As Object _
) As String
'使用
Dim objectToConvert As Object
Dim returnValue As String

returnValue = ToStringHelper.ToStringWithCulture(objectToConvert)
public static string ToStringWithCulture(
    Object objectToConvert
)
public:
static String^ ToStringWithCulture(
    Object^ objectToConvert
)
public static function ToStringWithCulture(
    objectToConvert : Object
) : String

Parameters

Return Value

Type: System.String

A String that represents the specified Object.

Remarks

Uses the FormatProvider if the specified Object provides a ToString method that accepts an IFormatProvider as a parameter. Otherwise, calls the default ToString.

Permissions

See Also

Reference

ToStringHelper Class

ToStringHelper Members

Microsoft.VisualStudio.TextTemplating Namespace

FormatProvider

IFormatProvider

Object

String

ToString