Partager via


UpdateExtensions.SetUnevaluatedUIPropertyValue Method

Definition

Sets the unevaluated value of a property exposed through the property pages.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> SetUnevaluatedUIPropertyValue (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, string page, string name, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.ProjectSystem.Query.Framework.Actions.ConfigurationDimensionValue> dimensions, string? value);
static member SetUnevaluatedUIPropertyValue : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * string * string * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.ProjectSystem.Query.Framework.Actions.ConfigurationDimensionValue> * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function SetUnevaluatedUIPropertyValue (projects As IAsyncUpdatable(Of IProjectSnapshot), page As String, name As String, dimensions As ReadOnlyCollection(Of ConfigurationDimensionValue), value As String) As IAsyncUpdatable(Of IProjectSnapshot)

Parameters

projects
IAsyncUpdatable<IProjectSnapshot>

A set of projects to update with the new value.

page
String

The name of the page containing the property.

name
String

The name of the property to set.

dimensions
ReadOnlyCollection<ConfigurationDimensionValue>

A set of (dimension, value) pairs used to select which project configurations the new value is applied to.

value
String

The new value for the property. May be null to indicate that the property should be removed entirely and/or reset to a default value.

Returns

The set of updated projects.

Remarks

This method should be used when you have a string representation of the property value that may contain references to other MSBuild properties, or need some other kind of interpretation. When you have a strongly-typed object representing the final state of the property use SetEvaluatedUIPropertyValue(IAsyncUpdatable<IProjectSnapshot>, String, String, ReadOnlyCollection<ConfigurationDimensionValue>, Object) instead.

Applies to