Export (0) Print
Expand All

ContextInformation.IsMachineLevel Property

Gets a value specifying whether the configuration property is being evaluated at the machine configuration level.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

member IsMachineLevel : bool with get

Property Value

Type: System.Boolean
true if the configuration property is being evaluated at the machine configuration level; otherwise, false.

When the returned value of IsMachineLevel is false, use the HostingContext property to determine the level within the configuration hierarchy.

The following code example demonstrates how to use the HostingContext property.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft