IVsProfileDataManager.ResetSettings 方法

定义

重置设置值。

public:
 int ResetSettings(Microsoft::VisualStudio::Shell::Interop::IVsProfileSettingsFileInfo ^ pFileInfo, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSettingsErrorInformation ^ % ppsettingsErrorInformation);
public:
 int ResetSettings(Microsoft::VisualStudio::Shell::Interop::IVsProfileSettingsFileInfo ^ pFileInfo, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSettingsErrorInformation ^ &  ppsettingsErrorInformation);
int ResetSettings(Microsoft::VisualStudio::Shell::Interop::IVsProfileSettingsFileInfo const & pFileInfo, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSettingsErrorInformation const & & ppsettingsErrorInformation);
public int ResetSettings (Microsoft.VisualStudio.Shell.Interop.IVsProfileSettingsFileInfo pFileInfo, out Microsoft.VisualStudio.Shell.Interop.IVsSettingsErrorInformation ppsettingsErrorInformation);
abstract member ResetSettings : Microsoft.VisualStudio.Shell.Interop.IVsProfileSettingsFileInfo * IVsSettingsErrorInformation -> int
Public Function ResetSettings (pFileInfo As IVsProfileSettingsFileInfo, ByRef ppsettingsErrorInformation As IVsSettingsErrorInformation) As Integer

参数

pFileInfo
IVsProfileSettingsFileInfo

中指向接口的指针, IVsProfileSettingsFileInfo 该接口包含有关设置文件的信息。

ppsettingsErrorInformation
IVsSettingsErrorInformation

弄指向 IVsSettingsErrorInformation 报告任何错误的接口的指针。 如果没有错误,则设置为 null

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于