ITokenServiceCreateUserDataToken Method |
Creates a new user data token based on the specified data source element.
Namespace:
Dundas.BI.Data.Parameters.Tokens
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (8.0.2.1001)
SyntaxDataToken CreateUserDataToken(
string tokenName,
Guid projectId,
Guid accountId,
Guid sourceStructureId,
string elementName,
TokenDataCategory category
)
Function CreateUserDataToken (
tokenName As String,
projectId As Guid,
accountId As Guid,
sourceStructureId As Guid,
elementName As String,
category As TokenDataCategory
) As DataToken
DataToken^ CreateUserDataToken(
String^ tokenName,
Guid projectId,
Guid accountId,
Guid sourceStructureId,
String^ elementName,
TokenDataCategory category
)
abstract CreateUserDataToken :
tokenName : string *
projectId : Guid *
accountId : Guid *
sourceStructureId : Guid *
elementName : string *
category : TokenDataCategory -> DataToken
Parameters
- tokenName
- Type: SystemString
The token name. - projectId
- Type: SystemGuid
The project Id that will host the source DataCube. - accountId
- Type: SystemGuid
The account ID, if this is a user specific token. - sourceStructureId
- Type: SystemGuid
The token identifier. - elementName
- Type: SystemString
The element name. - category
- Type: Dundas.BI.Data.Parameters.TokensTokenDataCategory
The data token category rule.
Return Value
Type:
DataToken
Exceptions| Exception | Condition |
|---|
| ArgumentException | projectId or accountId or sourceStructureId is Empty. |
| ArgumentException | category is not a valid TokenDataCategory. -or- the specified source structure is not a DataCube or a NativeStructure. |
| ArgumentException | tokenName or elementName is or Empty. |
| NotFoundException | The specified source structure or the data element cannot be found. |
| NoPrivilegeException | The caller does not have permission to update the token. -or- The caller does not have permission to update the token for the token tenant. |
| InvalidSessionException | The caller context is not associated with a valid session. |
See Also