IVsSccManager2.UnregisterSccProject Method
Called by projects registered with the source control portion of the environment before they are closed.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function UnregisterSccProject ( _
pscp2Project As IVsSccProject2 _
) As Integer
int UnregisterSccProject(
IVsSccProject2 pscp2Project
)
int UnregisterSccProject(
[InAttribute] IVsSccProject2^ pscp2Project
)
abstract UnregisterSccProject :
pscp2Project:IVsSccProject2 -> int
function UnregisterSccProject(
pscp2Project : IVsSccProject2
) : int
Parameters
- pscp2Project
Type: Microsoft.VisualStudio.Shell.Interop.IVsSccProject2
[in] Pointer to the project's IVsSccProject2 interface.
Note This interface must be on the same object that supports IVsProject3 and IVsHierarchy.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From ivssccmanager2.idl
HRESULT UnregisterSccProject(
[in] IVsSccProject2 *pscp2Project
);
Call this method when the project is closed, while the project pointer is still valid.
.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.