Export (0) Print
Expand All

CompilationSection.UrlLinePragmas Property

Gets or sets a value indicating whether instructions to the compiler use physical paths or URLs.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public bool UrlLinePragmas { get; set; }
/** @property */
public boolean get_UrlLinePragmas ()

/** @property */
public void set_UrlLinePragmas (boolean value)

public function get UrlLinePragmas () : boolean

public function set UrlLinePragmas (value : boolean)

Not applicable.

Property Value

true if instructions to the compiler use URLs rather than physical paths; otherwise, false. The default is false.

If this property is specified as true in the configuration, URLs will be used for the compiler instructions instead of physical paths.

The following code example demonstrates how to use the UrlLinePragmas property. This code example is part of a larger example provided for the CompilationSection class.

// Display UrlLinePragmas property.
Console.WriteLine("UrlLinePragmas: {0}", 
  configSection.UrlLinePragmas);

// Set UrlLinePragmas property.
configSection.UrlLinePragmas = false;

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft