你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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