Поделиться через


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

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

See Also

Reference

IVsSccManager2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace