Share via


IVsSccProjectEnlistmentFactory.OnAfterEnlistmentCreate Method

Definition

Called by the environment after an enlistment has been completely created.

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

Parameters

lpszProjectPath
String

[in] The original project path.

lpszEnlistment
String

[in] The enlistment choice used to create the enlistment.

lpszEnlistmentUNC
String

[in] The enlistment choice as a fully qualified path (UNC-style, [drive:]\path, or file://path).

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code (a typical error is E_NOTIMPL).

Remarks

COM Signature

From ivssccprojectenlistmentfactory.idl

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

This method allows the project type to do any special operations once the enlistment has been created. Such operations could, for example, include setting file permissions or freeing any memory allocated in OnBeforeEnlistmentCreate method.

Applies to