Entity class

This member is reserved for internal use and is not intended to be used directly from your code.

Inheritance hierarchy

System.Object
  Microsoft.Office.Project.Server.Library.Entity

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
<ClientCallableTypeAttribute(ServerTypeId := "91585F46-A1C2-40C2-B5B4-7C29A3FB40FF",  _
    Name := "EntityType")> _
Public Class Entity
'Usage
Dim instance As Entity
[ClientCallableTypeAttribute(ServerTypeId = "91585F46-A1C2-40C2-B5B4-7C29A3FB40FF", 
    Name = "EntityType")]
public class Entity

Remarks

The Entity class constructor is internal, so you can't instantiate an Entity object outside of the Microsoft.Office.Project.Server.Library namespace. Use EntityCollection to access entity information.

Examples

The following code fragment uses the resource entity GUID in order to get all of the resource custom fields with the ReadCustomFieldsByEntity method. WebSvcCustomFields is the arbitrary name of a reference to the CustomFields.asmx Web service.

using PSLibrary = Microsoft.Office.Project.Server.Library;
. . .
public static WebSvcCustomFields.CustomFields customFields =
    new WebSvcCustomFields.CustomFields();
. . .
string resourceEntity = PSLibrary.EntityCollection.Entities.ResourceEntity.UniqueId;

WebSvcCustomFields.CustomFieldDataSet cfDs = customFields.ReadCustomFieldsByEntity(
    new Guid(resourceEntity));
. . .

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

Entity members

Microsoft.Office.Project.Server.Library namespace