다음을 통해 공유


SPFieldCurrency.CurrencyLocaleId Property

Gets or sets the currency symbol that is used to format the field's value, and also the position of the currency symbol (for example, whether before or after numeric values).

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(FixedId := "1", Type := ClientCallableConstraintType.Custom, Value := "It MUST be a valid LCID")> _
<ClientCallableAttribute> _
Public Property CurrencyLocaleId As Integer
    Get
    Set
'Usage
Dim instance As SPFieldCurrency
Dim value As Integer

value = instance.CurrencyLocaleId

instance.CurrencyLocaleId = value
[ClientCallableConstraintAttribute(FixedId = "1", Type = ClientCallableConstraintType.Custom, Value = "It MUST be a valid LCID")]
[ClientCallableAttribute]
public int CurrencyLocaleId { get; set; }

Property Value

Type: System.Int32
A 32-bit integer that specifies the locale ID. For example, 1033 specifies the locale ID for "English (United States)", and formats the currency value using the dollar symbol ($). The specified property value also determines the position of the currency symbol. For example, 123,456.00 € for France, or € 123,456.00 for Italy.

Remarks

Numeric formatting (decimal and place separator, etc.) are determined by the value of SPWeb.RegionalSettings.LocaleId. It is necessary to call the Update method for changes to be persisted.

See Also

Reference

SPFieldCurrency Class

SPFieldCurrency Members

Microsoft.SharePoint Namespace