IVsSccProvider.AnyItemsUnderSourceControl Method

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)

Syntax

'Declaration
Function AnyItemsUnderSourceControl ( _
    <OutAttribute> ByRef pfResult As Integer _
) As Integer
'Usage
Dim instance As IVsSccProvider 
Dim pfResult As Integer 
Dim returnValue As Integer 

returnValue = instance.AnyItemsUnderSourceControl(pfResult)
int AnyItemsUnderSourceControl(
    out int pfResult
)
int AnyItemsUnderSourceControl(
    [OutAttribute] int% pfResult
)
function AnyItemsUnderSourceControl(
    pfResult : int
) : int

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.

Remarks

COM Signature

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.

.NET Framework Security

See Also

Reference

IVsSccProvider Interface

IVsSccProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace