TraceSection.LocalOnly Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de ASP.NET trace viewer (Trace.axd) alleen beschikbaar is voor aanvragen van de hostwebserver.

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

Waarde van eigenschap

true als de ASP.NET trace viewer (Trace.axd) alleen beschikbaar is voor aanvragen van de hostwebserver; anders false. De standaardwaarde is true.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de LocalOnly eigenschap gebruikt. Dit codevoorbeeld maakt deel uit van een groter voorbeeld voor de TraceSection klasse.


// 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

Van toepassing op