次の方法で共有


IVsSccProvider.AnyItemsUnderSourceControl(Int32) Method

Definition

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

public:
 int AnyItemsUnderSourceControl([Runtime::InteropServices::Out] int % pfResult);
int AnyItemsUnderSourceControl([Runtime::InteropServices::Out] int & pfResult);
public int AnyItemsUnderSourceControl (out int pfResult);
abstract member AnyItemsUnderSourceControl : int -> int
Public Function AnyItemsUnderSourceControl (ByRef pfResult As Integer) As Integer

Parameters

pfResult
Int32

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

Returns

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.

Applies to