简体   繁体   English

Microsoft Analysis Services转换

[英]Microsoft Analysis Services Translations

I have the following scenario: 我有以下情况:

From .NET (v3.5, c#) I connect to an OLAP Cube using the Microsoft.AnalysisServices namespace and objects in order to manage dinamycally the translations of dimensions, measures, attributes,etc. 从.NET(v3.5,c#),我使用Microsoft.AnalysisServices命名空间和对象连接到OLAP多维数据集,以便直观地管理维度,度量,属性等的转换。

A sample code updating an attribute caption translation looks like this: 更新属性标题转换的示例代码如下所示:

foreach (DimensionAttribute dimAttribute in dimension.Attributes)
{
  dimAttribute.Translations.Add(1043, "Some caption") //language code
}

However, the above code throws an "InvalidOperationException" -- "The item type Translation is not valid" 但是,上面的代码将引发“ InvalidOperationException”-“项目类型转换无效”

Any ideas? 有任何想法吗?

Thanks in advance 提前致谢

不相关...引发异常的代码在其他地方

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM