Open this page in the API Guide

IEntityService<T>.Get Method (String, Guid, Int64)

Gets an entity by its name and revision number.

Namespace:  Dundas.BI.Entities
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
T Get(
	string name,
	Guid parentId,
	long revision
)

Parameters

name
Type: System.String
The name of the entity to get.
parentId
Type: System.Guid
The ID of the parent entry.
revision
Type: System.Int64
The revision of the entity to get. Specify -1 to get the latest revision.

Return Value

Type: T
The entity with the specified name.
Exceptions
ExceptionCondition
ArgumentExceptionname is null or empty.
ArgumentOutOfRangeExceptionrevision is less than -1.
NotFoundException

The entity with the specified name does not exist or is currently recycled.

-or-

The parent with the specified ID does not exist.

-or-

The specified revision of the entity does not exist.

FeatureNotEnabledExceptionA required feature of the application is not enabled.
NoPrivilegeExceptionThe caller does not have the Read privilege on the specified entity.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also