Language

M365AttachmentDownloader Constructor

Definition

Creates the M365AttachmentDownloader

public M365AttachmentDownloader(Microsoft.Agents.Authentication.IConnections connections, System.Net.Http.IHttpClientFactory httpClientFactory, Microsoft.Agents.Builder.App.M365AttachmentDownloaderOptions options = default, Microsoft.Agents.Builder.IOutboundHostValidator hostValidator = default);
new Microsoft.Agents.Builder.App.M365AttachmentDownloader : Microsoft.Agents.Authentication.IConnections * System.Net.Http.IHttpClientFactory * Microsoft.Agents.Builder.App.M365AttachmentDownloaderOptions * Microsoft.Agents.Builder.IOutboundHostValidator -> Microsoft.Agents.Builder.App.M365AttachmentDownloader
Public Sub New (connections As IConnections, httpClientFactory As IHttpClientFactory, Optional options As M365AttachmentDownloaderOptions = Nothing, Optional hostValidator As IOutboundHostValidator = Nothing)

Parameters

connections
IConnections
httpClientFactory
IHttpClientFactory
options
M365AttachmentDownloaderOptions

The options

hostValidator
IOutboundHostValidator

Optional shared allowed-hosts validator. When enabled, the download URL is validated before the token-bearing request is made.

Exceptions

Applies to