MdLinkProviderGetFileLink - метод
Сформировать ссылку на файл.
Пространство имён: Tessa.Ai.MarkdownLinksСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
public string? GetFileLink(
string caption,
string? baseAddress,
Guid? cardID = null,
Guid? fileID = null,
Guid? versionID = null,
Guid? cardTypeID = null,
string? cardTypeName = null,
string? fileName = null,
string? fileTypeName = null,
bool? suggestFileNameForVersion = null,
bool asHtml = true,
bool normalize = true,
bool showErrorPage = true
)
Public Function GetFileLink (
caption As String,
baseAddress As String,
Optional cardID As Guid? = Nothing,
Optional fileID As Guid? = Nothing,
Optional versionID As Guid? = Nothing,
Optional cardTypeID As Guid? = Nothing,
Optional cardTypeName As String = Nothing,
Optional fileName As String = Nothing,
Optional fileTypeName As String = Nothing,
Optional suggestFileNameForVersion As Boolean? = Nothing,
Optional asHtml As Boolean = true,
Optional normalize As Boolean = true,
Optional showErrorPage As Boolean = true
) As String
public:
virtual String^ GetFileLink(
String^ caption,
String^ baseAddress,
Nullable<Guid> cardID = nullptr,
Nullable<Guid> fileID = nullptr,
Nullable<Guid> versionID = nullptr,
Nullable<Guid> cardTypeID = nullptr,
String^ cardTypeName = nullptr,
String^ fileName = nullptr,
String^ fileTypeName = nullptr,
Nullable<bool> suggestFileNameForVersion = nullptr,
bool asHtml = true,
bool normalize = true,
bool showErrorPage = true
) sealed
abstract GetFileLink :
caption : string *
baseAddress : string *
?cardID : Nullable<Guid> *
?fileID : Nullable<Guid> *
?versionID : Nullable<Guid> *
?cardTypeID : Nullable<Guid> *
?cardTypeName : string *
?fileName : string *
?fileTypeName : string *
?suggestFileNameForVersion : Nullable<bool> *
?asHtml : bool *
?normalize : bool *
?showErrorPage : bool
(* Defaults:
let _cardID = defaultArg cardID null
let _fileID = defaultArg fileID null
let _versionID = defaultArg versionID null
let _cardTypeID = defaultArg cardTypeID null
let _cardTypeName = defaultArg cardTypeName null
let _fileName = defaultArg fileName null
let _fileTypeName = defaultArg fileTypeName null
let _suggestFileNameForVersion = defaultArg suggestFileNameForVersion null
let _asHtml = defaultArg asHtml true
let _normalize = defaultArg normalize true
let _showErrorPage = defaultArg showErrorPage true
*)
-> string
override GetFileLink :
caption : string *
baseAddress : string *
?cardID : Nullable<Guid> *
?fileID : Nullable<Guid> *
?versionID : Nullable<Guid> *
?cardTypeID : Nullable<Guid> *
?cardTypeName : string *
?fileName : string *
?fileTypeName : string *
?suggestFileNameForVersion : Nullable<bool> *
?asHtml : bool *
?normalize : bool *
?showErrorPage : bool
(* Defaults:
let _cardID = defaultArg cardID null
let _fileID = defaultArg fileID null
let _versionID = defaultArg versionID null
let _cardTypeID = defaultArg cardTypeID null
let _cardTypeName = defaultArg cardTypeName null
let _fileName = defaultArg fileName null
let _fileTypeName = defaultArg fileTypeName null
let _suggestFileNameForVersion = defaultArg suggestFileNameForVersion null
let _asHtml = defaultArg asHtml true
let _normalize = defaultArg normalize true
let _showErrorPage = defaultArg showErrorPage true
*)
-> string
- caption String
- Текст ссылки.
- baseAddress String
- Базовый адрес сервиса. Если не указан - будет сформирована относительная ссылка.
- cardID NullableGuid (Optional)
- Идентификатор карточки.
- fileID NullableGuid (Optional)
- Идентификатор файла.
- versionID NullableGuid (Optional)
- Идентификатор версии файла.
- cardTypeID NullableGuid (Optional)
- Идентификатор типа карточки.
- cardTypeName String (Optional)
- Название типа карточки.
- fileName String (Optional)
- Название файла.
- fileTypeName String (Optional)
- Название типа файла.
- suggestFileNameForVersion NullableBoolean (Optional)
- Предлагать название файла для версии.
- asHtml Boolean (Optional)
- Файл в виде html.
- normalize Boolean (Optional)
- Нормализовывать базовый адрес.
- showErrorPage Boolean (Optional)
- Отображать страницу ошибок.
StringMarkdown-ссылка на файл или
null, если не удалось определить базовый адрес.
IMdLinkProviderGetFileLink(String, String, NullableGuid, NullableGuid, NullableGuid, NullableGuid, String, String, String, NullableBoolean, Boolean, Boolean, Boolean)