GetUrl
ILinkEmbedController.GetUrl 方法
返回外部对象的 URL。如果 GetObjectStoringLocation
返回 Link,则始终调用此方法,如果 GetObjectStoringLocation
返回 Embed 但无法嵌入,则也可以调用此方法。可以对同一对象 ID 多次调用。
public string GetUrl(int id, int referrer)
参数 | 类型 | 描述 |
---|---|---|
id | Int32 | 对象 ID。此 ID 在操作范围内是唯一的。 |
referrer | Int32 | 参照对象的 ID,或如果对象由根文档引用则为 0。可用于生成相对链接。 |
返回值
外部对象的 URL,如果该对象应该被忽略,则为 null。