Aracılığıyla paylaş


HttpRuntimeSection.RequireRootedSaveAsPath Özellik

Tanım

Dosya adının tam bir fiziksel dosya yolu olması gerekip gerekmediğini belirten bir değer alır veya ayarlar.

public:
 property bool RequireRootedSaveAsPath { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("requireRootedSaveAsPath", DefaultValue=true)]
public bool RequireRootedSaveAsPath { get; set; }
[<System.Configuration.ConfigurationProperty("requireRootedSaveAsPath", DefaultValue=true)>]
member this.RequireRootedSaveAsPath : bool with get, set
Public Property RequireRootedSaveAsPath As Boolean

Özellik Değeri

true dosya adının tam bir fiziksel dosya yolu olması gerekiyorsa; aksi takdirde , false. Varsayılan değer true değeridir.

Öznitelikler

Örnekler

Aşağıdaki örnekte özelliğinin nasıl kullanılacağı gösterilmektedir RequireRootedSaveAsPath .

// Get the RequireRootedSaveAsPath property value.
Response.Write("RequireRootedSaveAsPath: " +
  configSection.RequireRootedSaveAsPath + "<br>");

// Set the RequireRootedSaveAsPath property value to true.
configSection.RequireRootedSaveAsPath = true;
' Get the RequireRootedSaveAsPath property value.
Response.Write("RequireRootedSaveAsPath: " & _
  configSection.RequireRootedSaveAsPath & "<br>")

' Set the RequireRootedSaveAsPath property value to true.
configSection.RequireRootedSaveAsPath = True

Açıklamalar

RequireRootedSaveAsPath özelliği, yöntemlere SaveAs yönelik dosya adı bağımsız değişkeninin kök erişimli bir yol olup olmadığını belirtir. ASP.NET işleminin belirtilen konumda dosya oluşturma izni olmalıdır.

Daha fazla bilgi için, sınıfında tanımlanan kaydetme yöntemlerine Configuration bakın.

Şunlara uygulanır