共用方式為


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"

適用於