Share via


CubeFieldSettingDataSet.TaskMeasureRow.ENT_TYPE_UID property

Gets or sets the GUID of the cube type (Project, Resource, Task, or Assignment).

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

Syntax

'Declaration
Public Property ENT_TYPE_UID As Guid
    Get
    Set
'Usage
Dim instance As CubeFieldSettingDataSet.TaskMeasureRow
Dim value As Guid

value = instance.ENT_TYPE_UID

instance.ENT_TYPE_UID = value
public Guid ENT_TYPE_UID { get; set; }

Property value

Type: System.Guid

Remarks

In Project Web App, you can set the ENT_TYPE_UID property by editing the configuration of an OLAP database. For example, on the OLAP Database Management page (https://ServerName/ProjectServerName/_layouts/PWA/CubeAdmin/CubeAnalysisAdmin.aspx), select a database, and then click Configuration. On the Database Configuration page, in the Cube Measure section, in the Cube drop-down list, select the Task type of cubex.

Examples

The following code shows how to programmatically set ENT_TYPE_UID:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSLibrary = Microsoft.Office.Project.Server.Library;

namespace Microsoft.SDK.Project.Samples.CubeAdmin
{
    class Cube
    {
        private static SvcCubeAdmin.CubeAdminClient cubeAdminClient;
        // The name of a WCF endpoint in the app.config file.
        private const string ENDPOINT = "basicHttp_CubeAdmin";
        public static void Main(string[] args)
        {
            ConfigClientEndpoints(ENDPOINT);
            string taskEntity =
                     PSLibrary.EntityCollection.Entities.TaskEntity.UniqueId;
            SvcCubeAdmin.CubeFieldSettingDataSet cubeFieldSettings = 
                new SvcCubeAdmin.CubeFieldSettingDataSet();
            SvcCubeAdmin.CubeFieldSettingDataSet.TaskMeasureRow taskMeasureRow =
              cubeFieldSettings.TaskMeasure.NewTaskMeasureRow();
            taskMeasureRow.ENT_TYPE_UID =
                new Guid(PSLibrary.EntityCollection.Entities.TaskEntity.UniqueId);
        }
        // Configure the client endpoints.
        public static void ConfigClientEndpoints(string endpt)
        {
            cubeAdminClient = new SvcCubeAdmin.CubeAdminClient(endpt);
        }
    }
}

For information about the primary cube type when you use an assignment custom field for a cube dimension, see PRIMARY_ENT_TYPE_UID.

See also

Reference

CubeFieldSettingDataSet.TaskMeasureRow class

CubeFieldSettingDataSet.TaskMeasureRow members

WebSvcCubeAdmin namespace