Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StringAsTempFile Class

Definition

Namespace:
Microsoft.AspNetCore.NodeServices
Assembly:
Microsoft.AspNetCore.NodeServices.dll
Package:
Microsoft.AspNetCore.NodeServices v2.0.0
Package:
Microsoft.AspNetCore.NodeServices v2.1.0
Package:
Microsoft.AspNetCore.NodeServices v2.2.0
Package:
Microsoft.AspNetCore.NodeServices v3.0.3
Package:
Microsoft.AspNetCore.NodeServices v3.1.18
Source:
StringAsTempFile.cs
Source:
StringAsTempFile.cs
Source:
StringAsTempFile.cs
Source:
StringAsTempFile.cs

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.

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

Name Description
StringAsTempFile(String, CancellationToken)

Create a new instance of StringAsTempFile.

Properties

Name Description
FileName

Specifies the filename of the temporary file.

Methods

Name Description
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


Feedback

Was this page helpful?