IShortLinkServiceGetShortLink Method (String, CreateShortLinkOptions)

Gets the shortened version of a link.

Namespace:  Dundas.BI.Services
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
string GetShortLink(
	string longLink,
	CreateShortLinkOptions options
)

Parameters

longLink
Type: SystemString
The original link.
options
Type: Dundas.BI.ServicesCreateShortLinkOptions
The options for how the short link should be created.

Return Value

Type: String
The shortened link.
Exceptions
ExceptionCondition
ArgumentExceptionlongLink is or empty.
NotFoundException

The specified file system entry ID does not correspond to a valid entry.

-or-

The specified account ID does not correspond to a valid account.

NoPrivilegeException

An account ID has been specified in options, which does not correspond to the caller, and cannot be administered by the caller.

-or-

The short link is has a category ID, but no account ID, and the caller is not an administrator.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also