CubeAdmin.SetCubeBuildingSettings Method

Makes the specified Cube Build Service (CBS) settings.

Namespace:  WebSvcCubeAdmin
Assembly:  ProjectServerWebServices (in ProjectServerWebServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/SetCubeBuildingSettings", RequestNamespace := "http://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/",  _
    ResponseNamespace := "http://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
'Usage
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("http://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/SetCubeBuildingSettings", RequestNamespace = "http://schemas.microsoft.com/office/project/server/webservices/CubeAdmin/", 
    ResponseNamespace = "http://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
)

Parameters

  • ASServerName
    Type: System.String
    Name of the Analysis Services server.
  • ASDBName
    Type: System.String
    Name of the Analysis Services database.
  • ASDatabaseDescription
    Type: System.String
    Description of the Analysis Services database.
  • ASExtraNetAddress
    Type: System.String
    Extranet address of the Analysis Services server.
  • dateRangeChoice
    Type: System.Int32
    Choice of date range (0 to 2).
  • pastNum
    Type: System.Int32
    Past date range number (0 to 3000).
  • pastUnit
    Type: System.Int32
    Past date range unit (0 to 2).
  • nextNum
    Type: System.Int32
    Next date range number (0 to 3000).
  • nextUnit
    Type: System.Int32
    Next date range unit (0 to 2).
  • updateFreqChoice
    Type: System.Int32
    Update frequency (0 or 1).
  • freqNumber
    Type: System.Int32
    Frequency number (0 to 3000).
  • startTime
    Type: System.Int32
    Time to start building the cube (0 to 47).

Return Value

Type: System.Int32
Returns -1 for an error, or 0 for success in making the CBS settings.

Remarks

Project Server Permissions

Permission

Description

ManageCubeBuildingService

Manage settings for OLAP cube creation. Global permisson.

See Also

Reference

CubeAdmin Class

CubeAdmin Members

WebSvcCubeAdmin Namespace