IVsSccProvider::AnyItemsUnderSourceControl Method (Int32)

 

Determines if any item in the solution are under source control.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int AnyItemsUnderSourceControl(
	[OutAttribute] int% pfResult
)

Parameters

pfResult
Type: System::Int32

[out] Returns non-zero (TRUE) if there is at least one item under source control; otherwise, returns zero (FALSE).

Return Value

Type: System::Int32

The method returns S_OK.

From ivssccprovider.idl

HRESULT AnyItemsUnderSourceControl([out] BOOL* pfResult);

As part of the process of switching source control providers, this method is called to determine if the user should close a currently open solution before switching to another or if the solution can be closed automatically. If the solution has any items under source control, the user is prompted to close the solution.

Return to top
Show: