IVsSccProjectEnlistmentFactory.OnAfterEnlistmentCreate Method
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)
Syntax
'Declaration
Function OnAfterEnlistmentCreate ( _
lpszProjectPath As String, _
lpszEnlistment As String, _
lpszEnlistmentUNC As String _
) As Integer
int OnAfterEnlistmentCreate(
string lpszProjectPath,
string lpszEnlistment,
string lpszEnlistmentUNC
)
int OnAfterEnlistmentCreate(
[InAttribute] String^ lpszProjectPath,
[InAttribute] String^ lpszEnlistment,
[InAttribute] String^ lpszEnlistmentUNC
)
abstract OnAfterEnlistmentCreate :
lpszProjectPath:string *
lpszEnlistment:string *
lpszEnlistmentUNC:string -> int
function OnAfterEnlistmentCreate(
lpszProjectPath : String,
lpszEnlistment : String,
lpszEnlistmentUNC : String
) : int
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).
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.