Share via


BuildSettings.ApplicationRequiresElevation Property

Definition

A value of true indicates that the application should require elevation to install on Vista.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 property bool ApplicationRequiresElevation { bool get(); void set(bool value); };
public bool ApplicationRequiresElevation { get; set; }
public bool ApplicationRequiresElevation { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.ApplicationRequiresElevation : bool with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.ApplicationRequiresElevation : bool with get, set
Public Property ApplicationRequiresElevation As Boolean

Property Value

true if the installed component runs with elevated permissions; otherwise false.

Implements

Attributes

Remarks

This property can be set in the project file, but it is not exposed in the MSBuild schema.

A component runs with elevated permissions when it writes a registry key or is installed to the global assembly cache. For example, if you are installing assemblies to the global assembly cache, you have to set this property to true.

Applies to

See also