IVsProfileDataManager.ExportSettings 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将设置导出到文件。
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
参数
- bstrFilePath
- String
中包含用于导出设置的文件的路径和名称的字符串。
- pSettingsTree
- IVsProfileSettingsTree
中指向 IVsProfileSettingsTree 包含配置文件设置信息的接口的指针。 检索者 GetSettingsForExport(IVsProfileSettingsTree) 。
- ppsettingsErrorInformation
- IVsSettingsErrorInformation
弄指向 IVsSettingsErrorInformation 报告任何错误的接口的指针。 如果没有错误,则设置为 null 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。