Utilities.WriteToFile<T>(T, String, String) 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.
Method to write content to a file.
public static string WriteToFile<T> (T fileContent, string filePath, string fileName);
static member WriteToFile : 'T * string * string -> string
Public Function WriteToFile(Of T) (fileContent As T, filePath As String, fileName As String) As String
Type Parameters
- T
Class to be serialized
Parameters
- fileContent
- T
content to be written to the file
- filePath
- String
the path where the file is to be created
- fileName
- String
name of the file to be created
Returns
file path with file name as string