IVsSccToolsOptions::SetSccToolsOption Method (SccToolsOptionsEnum, Object^)
Visual Studio 2015
This method sets a specified source control option to the specified value.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Parameters
- sctoOptionToBeSet
-
Type:
Microsoft.VisualStudio.Shell.Interop::SccToolsOptionsEnum
[in] A value from the __SccToolsOptionsEnum enumeration.
- varValueToBeSet
-
Type:
System::Object^
[in] The value to set on the option (typically, this will be nonzero for true and zero for false, but other values are possible depending on the option). See the individual options in SccToolsOptionsEnum for the appropriate values to use.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From ivsscctoolsoptions.idl
HRESULT SetSccToolsOption( [in] SccToolsOptionsEnum sctoOptionToBeSet, [in] VARIANT varValueToBeSet );
Only those options listed in the __SccToolsOptionsEnum enumeration can be set with this method.
Values can be read using the GetSccToolsOption method.
Show: