CompilationSection.TempDirectory 属性

定义

获取或设置一个值,该值指定要在编译期间用于临时文件存储的目录。

public:
 property System::String ^ TempDirectory { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("tempDirectory", DefaultValue="")]
public string TempDirectory { get; set; }
[<System.Configuration.ConfigurationProperty("tempDirectory", DefaultValue="")>]
member this.TempDirectory : string with get, set
Public Property TempDirectory As String

属性值

String

一个指定要在编译期间用于临时文件存储的目录的值。

属性

示例

下面的代码示例演示如何使用该 TempDirectory 属性。 此代码示例是为类提供的大型示例的 CompilationSection 一部分。

// Display TempDirectory property.
Console.WriteLine("TempDirectory: {0}", configSection.TempDirectory);

// Set TempDirectory property.
configSection.TempDirectory = "myTempDirectory";
' Display TempDirectory property.
Console.WriteLine("TempDirectory: {0}", _
 configSection.TempDirectory)

' Set TempDirectory property.
configSection.TempDirectory = "myTempDirectory"

适用于