IBuildService.GetBuildConfigurationContextActionsAsync 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.
Overloads
GetBuildConfigurationContextActionsAsync(String, String, Guid, Func<FileContext,Boolean>) |
Get a Build Configuration Context type action |
GetBuildConfigurationContextActionsAsync(String, String, Guid, String) |
Get a Build Configuration Context type action |
GetBuildConfigurationContextActionsAsync(String, String, Guid, Func<FileContext,Boolean>)
Get a Build Configuration Context type action
public:
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::IFileContextAction ^> ^> ^ GetBuildConfigurationContextActionsAsync(System::String ^ projectFile, System::String ^ projectFileTarget, Guid contextType, Func<Microsoft::VisualStudio::Workspace::FileContext ^, bool> ^ matchBuildConfigurationContext);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>> GetBuildConfigurationContextActionsAsync (string projectFile, string projectFileTarget, Guid contextType, Func<Microsoft.VisualStudio.Workspace.FileContext,bool> matchBuildConfigurationContext);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>> GetBuildConfigurationContextActionsAsync (string projectFile, string? projectFileTarget, Guid contextType, Func<Microsoft.VisualStudio.Workspace.FileContext,bool> matchBuildConfigurationContext);
abstract member GetBuildConfigurationContextActionsAsync : string * string * Guid * Func<Microsoft.VisualStudio.Workspace.FileContext, bool> -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>>
Public Function GetBuildConfigurationContextActionsAsync (projectFile As String, projectFileTarget As String, contextType As Guid, matchBuildConfigurationContext As Func(Of FileContext, Boolean)) As Task(Of IReadOnlyCollection(Of IFileContextAction))
Parameters
- projectFile
- String
The project file context
- projectFileTarget
- String
Optional project target
- contextType
- Guid
The desired context type
- matchBuildConfigurationContext
- Func<FileContext,Boolean>
Callback to invoke to match a file context
Returns
File context actions that match the passed target project build configuration
Applies to
GetBuildConfigurationContextActionsAsync(String, String, Guid, String)
Get a Build Configuration Context type action
public:
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::IFileContextAction ^> ^> ^ GetBuildConfigurationContextActionsAsync(System::String ^ projectFile, System::String ^ projectFileTarget, Guid contextType, System::String ^ targetProjectBuildConfiguration);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>> GetBuildConfigurationContextActionsAsync (string projectFile, string projectFileTarget, Guid contextType, string targetProjectBuildConfiguration);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>> GetBuildConfigurationContextActionsAsync (string projectFile, string? projectFileTarget, Guid contextType, string? targetProjectBuildConfiguration);
abstract member GetBuildConfigurationContextActionsAsync : string * string * Guid * string -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>>
Public Function GetBuildConfigurationContextActionsAsync (projectFile As String, projectFileTarget As String, contextType As Guid, targetProjectBuildConfiguration As String) As Task(Of IReadOnlyCollection(Of IFileContextAction))
Parameters
- projectFile
- String
The project file context
- projectFileTarget
- String
Optional project target
- contextType
- Guid
The desired context type
- targetProjectBuildConfiguration
- String
Optional target project build configuration
Returns
File context actions that match the passed target project build configuration