ITokenServiceCreateTenantDataToken Method |
Namespace: Dundas.BI.Data.Parameters.Tokens
DataToken CreateTenantDataToken( string tokenName, Guid tenantId, Guid projectId, Guid sourceStructureId, string elementName, TokenDataCategory category )
| Exception | Condition |
|---|---|
| ArgumentException | projectId or tenantId 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. |