IVsSccProjectEnlistmentFactory.OnAfterEnlistmentCreate 方法

定义

在完全创建登记后由环境调用。

public:
 int OnAfterEnlistmentCreate(System::String ^ lpszProjectPath, System::String ^ lpszEnlistment, System::String ^ lpszEnlistmentUNC);
public:
 int OnAfterEnlistmentCreate(Platform::String ^ lpszProjectPath, Platform::String ^ lpszEnlistment, Platform::String ^ lpszEnlistmentUNC);
int OnAfterEnlistmentCreate(std::wstring const & lpszProjectPath, std::wstring const & lpszEnlistment, std::wstring const & lpszEnlistmentUNC);
public int OnAfterEnlistmentCreate (string lpszProjectPath, string lpszEnlistment, string lpszEnlistmentUNC);
abstract member OnAfterEnlistmentCreate : string * string * string -> int
Public Function OnAfterEnlistmentCreate (lpszProjectPath As String, lpszEnlistment As String, lpszEnlistmentUNC As String) As Integer

参数

lpszProjectPath
String

中原始项目路径。

lpszEnlistment
String

中用于创建登记的登记选项。

lpszEnlistmentUNC
String

中作为完全限定路径的登记选项 (UNC 样式,[drive:] \path 或 file://path) 。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果失败,它将返回错误代码, () 典型错误 E_NOTIMPL

注解

COM 签名

从 ivssccprojectenlistmentfactory

HRESULT OnAfterEnlistmentCreate(  
   [in] LPCOLESTR lpszProjectPath,  
   [in] LPCOLESTR lpszEnlistment,  
   [in] LPCOLESTR lpszEnlistmentUNC  
);  

创建登记后,此方法允许项目类型执行任何特殊操作。 例如,此类操作可以包括设置文件权限或释放在方法中分配的任何内存 OnBeforeEnlistmentCreate

适用于