Share via


Model.ExecuteXmla(String) 方法

定义

执行 XMLA 请求并更新本地模型树,以在请求执行后匹配驻留在 Analysis Services 实例上的模型。

public Microsoft.AnalysisServices.Tabular.ModelOperationResult ExecuteXmla (string xmlaRequest);
member this.ExecuteXmla : string -> Microsoft.AnalysisServices.Tabular.ModelOperationResult
Public Function ExecuteXmla (xmlaRequest As String) As ModelOperationResult

参数

xmlaRequest
String

要执行的 XMLA 请求

返回

包含 ModelOperationResult XMLA 请求执行结果的 。

示例

可以传递的有效 XMLA 请求的示例:

<Refresh xmlns=“http://schemas.microsoft.com/analysisservices/2014/engine”><DatabaseID>TMTestDB</DatabaseID><Partitions><!-- Begin Refresh Partition schema --> .... <!-- End Refresh Partition schema --><row xmlns=“urn:schemas-microsoft-com:xml-analysis:rowset”><ID.Table>{{TableName}}}</ID.Table><ID.Partition>{PartitionName}}</ID.Partition><RefreshType>{{RefreshType}}</RefreshType></row></Partitions></Refresh>

注解

传递给此方法的 XMLA 请求将包装到 <Command></Command> 元素中。

适用于