IMSBuildProjectDataService.GetProjectProperty 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.
Gets an instance of MSBuildProjectPropertyData matching the property name.
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Extensions.MSBuild.MSBuildProjectPropertyData> GetProjectProperty (string propertyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetProjectProperty : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Extensions.MSBuild.MSBuildProjectPropertyData>
Public Function GetProjectProperty (propertyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of MSBuildProjectPropertyData)
Parameters
- propertyName
- String
Name of the project property
- cancellationToken
- CancellationToken
Optional cancellation token
Returns
MSBuildProjectPropertyData, if one exists