Compartilhar via


IVsProfileDataManager.ExportSettings Method

Definition

Export settings to a file.

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

Parameters

bstrFilePath
String

[in] String containing the path and name of the file to use for exporting settings.

pSettingsTree
IVsProfileSettingsTree

[in] Pointer to an IVsProfileSettingsTree interface containing the profile settings information. Retrieved by GetSettingsForExport(IVsProfileSettingsTree).

ppsettingsErrorInformation
IVsSettingsErrorInformation

[out] Pointer to an IVsSettingsErrorInformation interface reporting any errors. Set to null if there are no errors.

Returns

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

Applies to