IVsSccToolsOptions::SetSccToolsOption Method (SccToolsOptionsEnum, Object^)

 

This method sets a specified source control option to the specified value.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int SetSccToolsOption(
	SccToolsOptionsEnum sctoOptionToBeSet,
	Object^ varValueToBeSet
)

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::Int32

If 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.

Return to top
Show: