Delen via


StringAsTempFile Class

Definition

Caution

Use Microsoft.AspNetCore.SpaServices.Extensions

Makes it easier to pass script files to Node in a way that's sure to clean up after the process exits.

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
Inheritance
StringAsTempFile
Attributes
Implements

Constructors

StringAsTempFile(String, CancellationToken)

Create a new instance of StringAsTempFile.

Properties

FileName

Specifies the filename of the temporary file.

Methods

Dispose()

Disposes the instance and deletes the associated temporary file.

Finalize()

Implements the finalization part of the IDisposable pattern by calling Dispose(false).

Applies to