Share via


CubeFieldSettingDataSet.ResourceDimensionRow.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.ResourceDimensionRow
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 Dimensions section, in the Cube drop-down list, select the Resource type of cube.

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.ResourceDimensionRow resourceDimRow =
               cubeFieldSettings.ResourceDimension.NewResourceDimensionRow();
            resourceDimRow.ENT_TYPE_UID =
                new Guid(PSLibrary.EntityCollection.Entities.ResourceEntity.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.ResourceDimensionRow class

CubeFieldSettingDataSet.ResourceDimensionRow members

WebSvcCubeAdmin namespace