次の方法で共有


Utilities.WriteToFile<T>(T, String, String) Method

Definition

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

Applies to