Partager via


IVsSccToolsOptions.GetSccToolsOption(SccToolsOptionsEnum, Object) Method

Definition

Retrieves the value associated with the specified source control option.

public:
 int GetSccToolsOption(Microsoft::VisualStudio::Shell::Interop::SccToolsOptionsEnum sctoOptionToBeSet, [Runtime::InteropServices::Out] System::Object ^ % pvarValueToGet);
int GetSccToolsOption(Microsoft::VisualStudio::Shell::Interop::SccToolsOptionsEnum sctoOptionToBeSet, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvarValueToGet);
public int GetSccToolsOption (Microsoft.VisualStudio.Shell.Interop.SccToolsOptionsEnum sctoOptionToBeSet, out object pvarValueToGet);
abstract member GetSccToolsOption : Microsoft.VisualStudio.Shell.Interop.SccToolsOptionsEnum * obj -> int
Public Function GetSccToolsOption (sctoOptionToBeSet As SccToolsOptionsEnum, ByRef pvarValueToGet As Object) As Integer

Parameters

sctoOptionToBeSet
SccToolsOptionsEnum

[in] A value from the __SccToolsOptionsEnum enumeration.

pvarValueToGet
Object

[out] Returns the value associated with the specified option.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From ivsscctoolsoptions.idl

HRESULT GetSccToolsOption(  
   [in] SccToolsOptionsEnum sctoOptionToBeSet,  
   [out,retval] VARIANT *pvarValueToGet  
);  

Only those options listed in the __SccToolsOptionsEnum enumeration can be set with this method.

Values can be set using the SetSccToolsOption method.

Applies to