IVsSccProjectEnlistmentFactory.GetDefaultEnlistment 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据指定的项目路径检索建议的登记路径。
public:
int GetDefaultEnlistment(System::String ^ lpszProjectPath, [Runtime::InteropServices::Out] System::String ^ % pbstrDefaultEnlistment, [Runtime::InteropServices::Out] System::String ^ % pbstrDefaultEnlistmentUNC);
int GetDefaultEnlistment(std::wstring const & lpszProjectPath, [Runtime::InteropServices::Out] std::wstring const & & pbstrDefaultEnlistment, [Runtime::InteropServices::Out] std::wstring const & & pbstrDefaultEnlistmentUNC);
public int GetDefaultEnlistment (string lpszProjectPath, out string pbstrDefaultEnlistment, out string pbstrDefaultEnlistmentUNC);
abstract member GetDefaultEnlistment : string * string * string -> int
Public Function GetDefaultEnlistment (lpszProjectPath As String, ByRef pbstrDefaultEnlistment As String, ByRef pbstrDefaultEnlistmentUNC As String) As Integer
参数
- lpszProjectPath
- String
中项目的路径为从解决方案文件中读取 (这是项目称为解决方案) 的名称。
- pbstrDefaultEnlistment
- String
弄返回建议的登记目标。 如果没有建议,则这将是一个 null 值。
- pbstrDefaultEnlistmentUNC
- String
弄将建议的登记目标作为完全限定路径返回 (UNC 样式,[drive:] \path 或 file://path) 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 ivssccprojectenlistmentfactory
HRESULT GetDefaultEnlistment(
[in] LPCOLESTR lpszProjectPath,
[out] BSTR * pbstrDefaultEnlistment,
[out] BSTR * pbstrDefaultEnlistmentUNC
);
如果需要,用户可以根据需要更改此路径。 此方法返回的路径只是一种建议,用作用户以后可以更改的默认值。