TempFileCollection 생성자

정의

TempFileCollection 클래스의 새 인스턴스를 초기화합니다.

오버로드

TempFileCollection()

기본값을 사용하여 TempFileCollection 클래스의 새 인스턴스를 초기화합니다.

TempFileCollection(String)

기본적으로, 임시 파일을 생성하고 사용한 후에 해당 임시 파일을 삭제하도록 설정한 지정된 임시 디렉터리를 사용하여 TempFileCollection 클래스의 새 인스턴스를 초기화합니다.

TempFileCollection(String, Boolean)

기본적으로, 임시 파일을 생성하고사용한 후에 해당 임시 파일을 유지할 것인지 또는 삭제할 것인지 여부를 나타내는 지정된 값과 지정된 임시 디렉터리를 사용하여 TempFileCollection 클래스의 새 인스턴스를 초기화합니다.

TempFileCollection()

Source:
TempFileCollection.cs
Source:
TempFileCollection.cs
Source:
TempFileCollection.cs

기본값을 사용하여 TempFileCollection 클래스의 새 인스턴스를 초기화합니다.

public:
 TempFileCollection();
public TempFileCollection ();
Public Sub New ()

설명

기본 설정을 사용하여 컬렉션을 초기화하는 매개 변수가 없는 생성자입니다. 기본적으로 이 임시 파일 컬렉션은 파일을 기본 임시 디렉터리에 저장하고 임시 파일이 생성되고 사용된 후 삭제됩니다.

적용 대상

TempFileCollection(String)

Source:
TempFileCollection.cs
Source:
TempFileCollection.cs
Source:
TempFileCollection.cs

기본적으로, 임시 파일을 생성하고 사용한 후에 해당 임시 파일을 삭제하도록 설정한 지정된 임시 디렉터리를 사용하여 TempFileCollection 클래스의 새 인스턴스를 초기화합니다.

public:
 TempFileCollection(System::String ^ tempDir);
public TempFileCollection (string tempDir);
new System.CodeDom.Compiler.TempFileCollection : string -> System.CodeDom.Compiler.TempFileCollection
Public Sub New (tempDir As String)

매개 변수

tempDir
String

임시 파일을 저장하는 데 사용할 임시 디렉터리에 대한 경로입니다.

적용 대상

TempFileCollection(String, Boolean)

Source:
TempFileCollection.cs
Source:
TempFileCollection.cs
Source:
TempFileCollection.cs

기본적으로, 임시 파일을 생성하고사용한 후에 해당 임시 파일을 유지할 것인지 또는 삭제할 것인지 여부를 나타내는 지정된 값과 지정된 임시 디렉터리를 사용하여 TempFileCollection 클래스의 새 인스턴스를 초기화합니다.

public:
 TempFileCollection(System::String ^ tempDir, bool keepFiles);
public TempFileCollection (string tempDir, bool keepFiles);
new System.CodeDom.Compiler.TempFileCollection : string * bool -> System.CodeDom.Compiler.TempFileCollection
Public Sub New (tempDir As String, keepFiles As Boolean)

매개 변수

tempDir
String

임시 파일을 저장하는 데 사용할 임시 디렉터리에 대한 경로입니다.

keepFiles
Boolean

임시 파일을 사용한 후에 유지해야 한다면 true이고 삭제해야 한다면 false입니다.

설명

keepFiles 은 매개 변수를 설정하는 KeepFiles 데 사용됩니다. 컬렉션의 임시 파일은 컬렉션의 속성 값 KeepFiles 에 따라 컴파일러 작업이 완료될 때 보존되거나 삭제됩니다. 각 파일이 컬렉션에 추가될 때 의 현재 값 KeepFiles 은 매개 변수가 있는 keepFile 메서드와 함께 추가되지 않는 한 해당 값과 연결됩니다. 이 경우 해당 값은 해당 특정 파일에 사용됩니다. 메서드가 Delete 호출되면 가 이trueKeepFilestrue으로 KeepFiles 추가된 파일을 포함하여 모든 파일이 삭제됩니다. 이렇게 하면 파일 유지로 식별된 특정 파일을 오류 보고와 같은 목적으로 컴파일한 후 일시적으로 보존한 다음, 더 이상 필요하지 않을 때 삭제할 수 있습니다.

적용 대상