IBuildService3.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<T>(String, T, Guid, Func<FileContext,Boolean>, CancellationToken) |
Gets the actions available on a workspace context |
GetBuildConfigurationContextActionsAsync<T>(String, T, Guid, String, CancellationToken) |
Gets the actions available on a workspace context |
GetBuildConfigurationContextActionsAsync<T>(String, T, Guid, Func<FileContext,Boolean>, CancellationToken)
Gets the actions available on a workspace context
public:
generic <typename T>
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::IFileContextAction ^> ^> ^ GetBuildConfigurationContextActionsAsync(System::String ^ projectFile, T context, Guid contextType, Func<Microsoft::VisualStudio::Workspace::FileContext ^, bool> ^ matchBuildConfigurationContext, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>> GetBuildConfigurationContextActionsAsync<T> (string projectFile, T context, Guid contextType, Func<Microsoft.VisualStudio.Workspace.FileContext,bool> matchBuildConfigurationContext, System.Threading.CancellationToken cancellationToken);
abstract member GetBuildConfigurationContextActionsAsync : string * 'T * Guid * Func<Microsoft.VisualStudio.Workspace.FileContext, bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>>
Public Function GetBuildConfigurationContextActionsAsync(Of T) (projectFile As String, context As T, contextType As Guid, matchBuildConfigurationContext As Func(Of FileContext, Boolean), cancellationToken As CancellationToken) As Task(Of IReadOnlyCollection(Of IFileContextAction))
Type Parameters
- T
Type of the context
Parameters
- projectFile
- String
The path to the project
- context
- T
The file context
- contextType
- Guid
The context types
- matchBuildConfigurationContext
- Func<FileContext,Boolean>
Callback to invoke to match a file context
- cancellationToken
- CancellationToken
A cancellation token
Returns
File context actions that match the passed target project build configuration
Applies to
GetBuildConfigurationContextActionsAsync<T>(String, T, Guid, String, CancellationToken)
Gets the actions available on a workspace context
public:
generic <typename T>
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::IFileContextAction ^> ^> ^ GetBuildConfigurationContextActionsAsync(System::String ^ projectFile, T context, Guid contextType, System::String ^ targetProjectBuildConfiguration, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>> GetBuildConfigurationContextActionsAsync<T> (string projectFile, T context, Guid contextType, string targetProjectBuildConfiguration, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>> GetBuildConfigurationContextActionsAsync<T> (string projectFile, T context, Guid contextType, string? targetProjectBuildConfiguration, System.Threading.CancellationToken cancellationToken);
abstract member GetBuildConfigurationContextActionsAsync : string * 'T * Guid * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.IFileContextAction>>
Public Function GetBuildConfigurationContextActionsAsync(Of T) (projectFile As String, context As T, contextType As Guid, targetProjectBuildConfiguration As String, cancellationToken As CancellationToken) As Task(Of IReadOnlyCollection(Of IFileContextAction))
Type Parameters
- T
Type of the context
Parameters
- projectFile
- String
The path to the project
- context
- T
The file context
- contextType
- Guid
The desired context type
- targetProjectBuildConfiguration
- String
Target project build configuration
- cancellationToken
- CancellationToken
A cancellation token
Returns
File context actions that match the passed target project build configuration