CubeAdmin.SetCubeBuildingSettings 方法
Project Server 2013中已弃用。请改用UpdateOlapDatabaseSettings(Guid, CubeSettingsDataSet)。
命名空间: WebSvcCubeAdmin
程序集: ProjectServerServices(位于 ProjectServerServices.dll 中)
语法
声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/SetCubeBuildingSettings", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/", _
ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function SetCubeBuildingSettings ( _
asCubeUID As Guid, _
ASServerName As String, _
ASDBName As String, _
ASDatabaseDescription As String, _
ASExtraNetAddress As String, _
dateRangeChoice As Integer, _
pastNum As Integer, _
pastUnit As Integer, _
nextNum As Integer, _
nextUnit As Integer, _
FromDate As DateTime, _
ToDate As DateTime, _
updateFreqChoice As Integer, _
freqNumber As Integer, _
freqUnit As Integer, _
startDate As DateTime, _
startTime As Integer _
) As Integer
用法
Dim instance As CubeAdmin
Dim asCubeUID As Guid
Dim ASServerName As String
Dim ASDBName As String
Dim ASDatabaseDescription As String
Dim ASExtraNetAddress As String
Dim dateRangeChoice As Integer
Dim pastNum As Integer
Dim pastUnit As Integer
Dim nextNum As Integer
Dim nextUnit As Integer
Dim FromDate As DateTime
Dim ToDate As DateTime
Dim updateFreqChoice As Integer
Dim freqNumber As Integer
Dim freqUnit As Integer
Dim startDate As DateTime
Dim startTime As Integer
Dim returnValue As Integer
returnValue = instance.SetCubeBuildingSettings(asCubeUID, _
ASServerName, ASDBName, ASDatabaseDescription, _
ASExtraNetAddress, dateRangeChoice, _
pastNum, pastUnit, nextNum, nextUnit, _
FromDate, ToDate, updateFreqChoice, _
freqNumber, freqUnit, startDate, _
startTime)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/SetCubeBuildingSettings", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/",
ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int SetCubeBuildingSettings(
Guid asCubeUID,
string ASServerName,
string ASDBName,
string ASDatabaseDescription,
string ASExtraNetAddress,
int dateRangeChoice,
int pastNum,
int pastUnit,
int nextNum,
int nextUnit,
DateTime FromDate,
DateTime ToDate,
int updateFreqChoice,
int freqNumber,
int freqUnit,
DateTime startDate,
int startTime
)
参数
asCubeUID
类型:System.Guid多维数据集的 GUID。
ASServerName
类型:System.StringAnalysis Services 服务器的名称。
ASDBName
类型:System.StringAnalysis Services 数据库的名称。
ASDatabaseDescription
类型:System.StringAnalysis Services 数据库的说明。
ASExtraNetAddress
类型:System.StringAnalysis Services 服务器 extranet 地址。
dateRangeChoice
类型:System.Int32所选的日期范围 (0 到 2)。
pastNum
类型:System.Int32过去的日期范围数字 (0 到 3000)。
pastUnit
类型:System.Int32过去的日期范围单位 (0 到 2)。
nextNum
类型:System.Int32接下来的日期范围数 (0 到 3000)。
nextUnit
类型:System.Int32下一个日期范围单位 (0 到 2)。
FromDate
类型:System.DateTime开始日期的数据多维数据集。
ToDate
类型:System.DateTime结束日期的数据多维数据集。
updateFreqChoice
类型:System.Int32更新频率 (0 或 1)。
freqNumber
类型:System.Int32频率数 (0 到 3000)。
freqUnit
类型:System.Int32频率单位 (0 到 2)。
startDate
类型:System.DateTime开始构建多维数据集的日期。
startTime
类型:System.Int32若要开始构建多维数据集 (0 到 47) 的时间。
返回值
类型:System.Int32
返回-1 错误或 0 (表示成功进行 CBS 设置。
备注
警告
SetCubeBuildingSettings是仅供Office Project Server 2007兼容性。方法设置为默认的数据库,因此不应使用Project Server 2010在ASDBName中传递的数据库。
在Office Project Server 2007, SetCubeBuildingSettings使指定的多维数据集生成服务 (CBS) 设置。
Project Server 权限
权限 |
说明 |
---|---|
允许用户管理 OLAP 多维数据集创建的设置。全局权限。 |
|
允许用户管理服务 (如 Active Directory 设置和数据库超时。全局权限。 |