M365AttachmentDownloader Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.