UpdateExtensions.SetEvaluatedUIPropertyValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the evaluated value of a property exposed through the property pages.
public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> SetEvaluatedUIPropertyValue (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, object? value);
static member SetEvaluatedUIPropertyValue : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * string * string * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.ProjectSystem.Query.Framework.Actions.ConfigurationDimensionValue> * obj -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function SetEvaluatedUIPropertyValue (projects As IAsyncUpdatable(Of IProjectSnapshot), page As String, name As String, dimensions As ReadOnlyCollection(Of ConfigurationDimensionValue), value As Object) 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
- Object
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 strongly-typed object representing the final state of the property. 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, use SetUnevaluatedUIPropertyValue(IAsyncUpdatable<IProjectSnapshot>, String, String, ReadOnlyCollection<ConfigurationDimensionValue>, String) instead.