GetUrl

ILinkEmbedController.GetUrl method

Returns an URL to an external object. This method always called if GetObjectStoringLocation returned Link and may be called if GetObjectStoringLocation returned Embed but embedding is impossible. Can be called multiple time for same object id.

public string GetUrl(int id, int referrer)
ParameterTypeDescription
idInt32Object id. This id is saving operation-wide unique.
referrerInt32id of referrencing object or 0, if object is referrenced by the root document. May be used to generate relative link.

Return Value

Url of external object or null if this object should be ignored.

See Also