StringAsTempFile 類別

定義

警告

Use Microsoft.AspNetCore.SpaServices.Extensions

讓您更輕鬆地將腳本檔案傳遞至 Node,以在進程結束時請務必清除的方式。

public ref class StringAsTempFile sealed : IDisposable
public sealed class StringAsTempFile : IDisposable
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public sealed class StringAsTempFile : IDisposable
type StringAsTempFile = class
    interface IDisposable
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
type StringAsTempFile = class
    interface IDisposable
Public NotInheritable Class StringAsTempFile
Implements IDisposable
繼承
StringAsTempFile
屬性
實作

建構函式

StringAsTempFile(String, CancellationToken)
已淘汰.

建立 StringAsTempFile 的新執行個體。

屬性

FileName
已淘汰.

指定暫存檔的檔案名。

方法

Dispose()
已淘汰.

處置 實例,並刪除相關聯的暫存檔案。

Finalize()
已淘汰.

呼叫 Dispose (false) ,實作 IDisposable 模式的最終部分。

適用於