IVsSccProjectEnlistmentFactory::OnAfterEnlistmentCreate Method (String^, String^, String^)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int OnAfterEnlistmentCreate(
	String^ lpszProjectPath,
	String^ lpszEnlistment,
	String^ lpszEnlistmentUNC
)

Parameters

lpszProjectPath
Type: System::String^

[in] The original project path.

lpszEnlistment
Type: System::String^

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

lpszEnlistmentUNC
Type: System::String^

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: