Navigation
API > API/Developer > API/Developer/SourceControl > API/Developer/SourceControl/ISourceControlProvider
Description
Used to switch the provider from one workspace to another. NOTE: This concept is currently only implemented for the perforce source control provider.
| Name | SwitchWorkspace |
| Type | function |
| Header File | /Engine/Source/Developer/SourceControl/Public/ISourceControlProvider.h |
| Include Path | #include "ISourceControlProvider.h" |
| Source | /Engine/Source/Developer/SourceControl/Private/ISourceControlProvider.cpp |
virtual ECommandResult::Type SwitchWorkspace
(
FStringView NewWorkspaceName,
FSourceControlResultInfo & OutResultInfo,
FString * OutOldWorkspaceName
)
The result of the operation.
Parameters
| Name | Remarks |
|---|---|
| NewWorkspaceName | The name of the workspace to switch to |
| ResultInfo[out] | Errors and info messages generated will be written here |
| OutOldWorkspaceName[out] | The name of the previous workspace will be written to this FString if the pointer is valid (optional) |