HttpRequest.PhysicalApplicationPath Özellik

Tanım

Şu anda yürütülmekte olan sunucu uygulamasının kök dizininin fiziksel dosya sistemi yolunu alır.

public:
 property System::String ^ PhysicalApplicationPath { System::String ^ get(); };
public string PhysicalApplicationPath { get; }
member this.PhysicalApplicationPath : string
Public ReadOnly Property PhysicalApplicationPath As String

Özellik Değeri

Geçerli uygulamanın kök dizininin dosya sistemi yolu.

Örnekler

Aşağıdaki kod örneği, özelliğin HtmlEncode değerini PhysicalApplicationPath HTML ile kodlamak için yöntemini ve WriteLine kodlanmış değeri dosyaya yazmak için yöntemini kullanır. Bu kod örneği, sınıfı için HttpRequest sağlanan daha büyük bir örneğin parçasıdır.

// Write request information to the file with HTML encoding.
sw.WriteLine(Server.HtmlEncode(Request.PhysicalApplicationPath));
sw.WriteLine(Server.HtmlEncode(Request.PhysicalPath));
sw.WriteLine(Server.HtmlEncode(Request.RawUrl));
' Write request information to the file with HTML encoding.
sw.WriteLine(Server.HtmlEncode(Request.PhysicalApplicationPath))
sw.WriteLine(Server.HtmlEncode(Request.PhysicalPath))
sw.WriteLine(Server.HtmlEncode(Request.RawUrl))

Şunlara uygulanır