TraceSection.LocalOnly Egenskap

Definition

Hämtar eller anger ett värde som anger om ASP.NET spårningsvisare (Trace.axd) endast är tillgänglig för begäranden från värdwebbservern.

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

Egenskapsvärde

true om ASP.NET spårningsvisaren (Trace.axd) endast är tillgänglig för begäranden från värdwebbservern, annars false. Standardvärdet är true.

Attribut

Exempel

Följande kodexempel visar hur du använder egenskapen LocalOnly . Det här kodexemplet är en del av ett större exempel för TraceSection klassen.


// Get the current LocalOnly property value.
Boolean localOnlyValue = traceSection.LocalOnly;

// Set the LocalOnly property to false.
traceSection.LocalOnly = false;

' Get the current LocalOnly property value.
Dim localOnlyValue As Boolean = traceSection.LocalOnly

' Set the LocalOnly property to false.
traceSection.LocalOnly = False

Gäller för