BinaryContentExtensions.WriteToFile(BinaryContent, String, Boolean) Method
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.
Writes the content to a file.
public static void WriteToFile(this Microsoft.SemanticKernel.BinaryContent content, string filePath, bool overwrite = false);
static member WriteToFile : Microsoft.SemanticKernel.BinaryContent * string * bool -> unit
<Extension()>
Public Sub WriteToFile (content As BinaryContent, filePath As String, Optional overwrite As Boolean = false)
Parameters
- content
- BinaryContent
The content to write.
- filePath
- String
The path to the file to write to.
- overwrite
- Boolean
Whether to overwrite the file if it already exists.