BuildPropertyGroup.Item[String] Property
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.
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution
This is the indexer for the BuildPropertyGroup class, which allows the caller to set or get the property data using simple array indexer [] notation. The caller passes in the property name inside the [], and out comes the BuildProperty object, which can be typecast to a string in order to get just the property value. Or if it's used on the left of the "=" sign, the same notation can set a new BuildProperty object, overwriting. Getting a value requires the property group be virtual.
public:
property Microsoft::Build::BuildEngine::BuildProperty ^ default[System::String ^] { Microsoft::Build::BuildEngine::BuildProperty ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, Microsoft::Build::BuildEngine::BuildProperty ^ value); };
public Microsoft.Build.BuildEngine.BuildProperty this[string propertyName] { get; set; }
member this.Item(string) : Microsoft.Build.BuildEngine.BuildProperty with get, set
Default Public Property Item(propertyName As String) As BuildProperty
Parameters
- propertyName
- String
Property Value
The property with the given name, or null if it does not exist in this group
Remarks
Warning
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution