Microsoft.Samples.VisualStudio.SourceControlIntegration.SccProvider.SccProvider.SaveUserOptions C# (CSharp) Method

SaveUserOptions() public method

public SaveUserOptions ( [ pPersistence ) : int
pPersistence [
return int
        public int SaveUserOptions([InAttribute] IVsSolutionPersistence pPersistence)
        {
            // This function gets called by the shell when the SUO file is saved.
            // The provider calls the shell back to let it know which options keys it will use in the suo file.
            // The shell will create a stream for the section of interest, and will call back the provider on
            // IVsPersistSolutionProps.WriteUserOptions() to save specific options under the specified key.
            int pfResult = 0;
            sccService.AnyItemsUnderSourceControl(out pfResult);
            if (pfResult > 0)
            {
                pPersistence.SavePackageUserOpts(this, _strSolutionUserOptionsKey);
            }
            return VSConstants.S_OK;
        }