GitScc.SccProviderService.RegisterSccProject C# (CSharp) Method

RegisterSccProject() public method

One of the most important methods in a source control provider, is called by projects that are under source control when they are first opened to register project settings
public RegisterSccProject ( [ pscp2Project, [ pszSccProjectName, [ pszSccAuxPath, [ pszSccLocalPath, [ pszProvider ) : int
pscp2Project [
pszSccProjectName [
pszSccAuxPath [
pszSccLocalPath [
pszProvider [
return int
        public int RegisterSccProject([InAttribute] IVsSccProject2 pscp2Project, [InAttribute] string pszSccProjectName, [InAttribute] string pszSccAuxPath, [InAttribute] string pszSccLocalPath, [InAttribute] string pszProvider)
        {
            //if (pszProvider.CompareTo(_sccProvider.ProviderName) != 0)
            //{
            //    // If the provider name controlling this project is not our provider, the user may be adding to a 
            //    // solution controlled by this provider an existing project controlled by some other provider.
            //    // We'll deny the registration with scc in such case.
            //    return VSConstants.E_FAIL;
            //}

            return VSConstants.S_OK;
        }
SccProviderService