TimeToken Constructor (Guid, Guid, TokenOwnerKind, TokenDisplayTypes, DateTimeGranularity, Int32, DateTimeGranularity, Int32)

Initializes a new instance of the TimeToken class.

Namespace:  Dundas.BI.Data.Parameters.Tokens
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
public TimeToken(
	Guid projectId,
	Guid ownerId,
	TokenOwnerKind ownerKind,
	TokenDisplayTypes displayType,
	DateTimeGranularity memberGranularity,
	int memberOffset,
	DateTimeGranularity endMemberGranularity,
	int endMemberOffset
)

Parameters

projectId
Type: SystemGuid
The ID of the project associated with the token. Specify Empty if the token is not associated with a project.
ownerId
Type: SystemGuid
The ID of the account or tenant associated with the token. Specify Empty if there is no such association.
ownerKind
Type: Dundas.BI.Data.Parameters.TokensTokenOwnerKind
Specifies the kind of object referenced by ownerId.
displayType
Type: Dundas.BI.Data.Parameters.TokensTokenDisplayTypes
The display type.
memberGranularity
Type: Dundas.BI.DataDateTimeGranularity
The granularity of the start (or single) member.
memberOffset
Type: SystemInt32
The initial date/time offset for the start (or single) member.
endMemberGranularity
Type: Dundas.BI.DataDateTimeGranularity
The end member granularity.
endMemberOffset
Type: SystemInt32
The end member offset.
Exceptions
ExceptionCondition
ArgumentExceptionownerId is Empty and ownerKind is not None.
ArgumentOutOfRangeExceptionownerKind is not one of the TokenOwnerKind values.

-or-

displayType is not supported.

-or-

memberGranularity is not supported.

See Also