ScriptToken Constructor (Guid, Guid, TokenOwnerKind, TokenDisplayTypes, CompatibleDataTypes, String)

Initializes a new instance of the ScriptToken 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 ScriptToken(
	Guid projectId,
	Guid ownerId,
	TokenOwnerKind ownerKind,
	TokenDisplayTypes displayType,
	CompatibleDataTypes dataType,
	string statement
)

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 of the token.
dataType
Type: Dundas.BI.Data.ParametersCompatibleDataTypes
The token data type.
statement
Type: SystemString
The script text.
Exceptions
ExceptionCondition
ArgumentException

statement is or empty.

-or-

ownerId is Empty and ownerKind is not None.
ArgumentOutOfRangeExceptionownerKind is not one of the TokenOwnerKind values.
See Also