Freigeben über


SPFieldCurrency.GetFieldValueAsText-Methode (Double, CultureInfo, Int32, SPNumberFormatTypes)

Gibt den Wert des Feldes als unformatierter Text basierend auf der angegebenen Daten, Informationen zur Kultur, Gebietsschema-ID und Zahlenformat.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function GetFieldValueAsText ( _
    data As Double, _
    culture As CultureInfo, _
    currencyLocaleId As Integer, _
    displayFormat As SPNumberFormatTypes _
) As String
'Usage
Dim data As Double
Dim culture As CultureInfo
Dim currencyLocaleId As Integer
Dim displayFormat As SPNumberFormatTypes
Dim returnValue As String

returnValue = SPFieldCurrency.GetFieldValueAsText(data, _
    culture, currencyLocaleId, displayFormat)
public static string GetFieldValueAsText(
    double data,
    CultureInfo culture,
    int currencyLocaleId,
    SPNumberFormatTypes displayFormat
)

Parameter

  • data
    Typ: System.Double

    Ein System.Double -Objekt, das der Wert in HTML-Format zu konvertieren.

  • culture
    Typ: System.Globalization.CultureInfo

    Ein System.Globalization.CultureInfo -Objekt, das Informationen über die spezifische Kultur enthält, die über das Feld dargestellt wird.

  • currencyLocaleId
    Typ: System.Int32

    Eine 32-Bit-Ganzzahl, die Gebietsschema-ID im Feld angibt.

Rückgabewert

Typ: System.String
Eine Zeichenfolge, die den Wert z. B. als unformatierter Text ohne HTML-Elemente enthält.

Siehe auch

Referenz

SPFieldCurrency Klasse

SPFieldCurrency-Member

GetFieldValueAsText-Überladung

Microsoft.SharePoint-Namespace