IVsProfileDataManager.ExportAllSettings 方法

定义

将所有设置导出到文件。

public:
 int ExportAllSettings(System::String ^ bstrFilePath, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSettingsErrorInformation ^ % ppsettingsErrorInformation);
public:
 int ExportAllSettings(Platform::String ^ bstrFilePath, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSettingsErrorInformation ^ &  ppsettingsErrorInformation);
int ExportAllSettings(std::wstring const & bstrFilePath, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsSettingsErrorInformation const & & ppsettingsErrorInformation);
public int ExportAllSettings (string bstrFilePath, out Microsoft.VisualStudio.Shell.Interop.IVsSettingsErrorInformation ppsettingsErrorInformation);
abstract member ExportAllSettings : string * IVsSettingsErrorInformation -> int
Public Function ExportAllSettings (bstrFilePath As String, ByRef ppsettingsErrorInformation As IVsSettingsErrorInformation) As Integer

参数

bstrFilePath
String

中包含要用于保存设置的文件的路径和名称的字符串。

ppsettingsErrorInformation
IVsSettingsErrorInformation

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

返回

Int32

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

适用于