获取SPField货币字符

如何获取SPField货币类型中的货币符号呢,需要用到 RegionInfo

 

SPField field = list.Fields["单价"];
int id = ((Microsoft.SharePoint.SPFieldCurrency)(fd)).CurrencyLocaleId;
RegionInfo rf = new RegionInfo(id);
Console.WriteLine(rf.CurrencySymbol);

 

注:命名空间 System.Globalization;

你可能感兴趣的:(Field)