Freigeben über


TraceSection.LocalOnly Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob der ASP.NET Trace Viewer (Trace.axd) nur für Anforderungen vom Hostwebserver verfügbar ist.

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

Eigenschaftswert

truewenn der ASP.NET Trace Viewer (Trace.axd) nur für Anforderungen vom Hostwebserver verfügbar ist; andernfalls . false Der Standardwert lautet true.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie die LocalOnly Eigenschaft verwendet wird. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die TraceSection Klasse bereitgestellt wird.


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

Gilt für: