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
声明
Function AnyItemsUnderSourceControl ( _
<OutAttribute> ByRef pfResult As Integer _
) As Integer
用法
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
)
abstract AnyItemsUnderSourceControl :
pfResult:int byref -> int
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.