Share via


IVSSEvents.BeforeAdd Method 

An event that is fired before a file is added to the SourceSafe database.

Namespace: Microsoft.VisualStudio.SourceSafe.Interop
Assembly: Microsoft.VisualStudio.SourceSafe.Interop (in microsoft.visualstudio.sourcesafe.interop.dll)

Syntax

'Declaration
Function BeforeAdd ( _
    <InAttribute> pIPrj As VSSItem, _
    <InAttribute> Local As String, _
    <InAttribute> Comment As String _
) As Boolean
'Usage
Dim instance As IVSSEvents
Dim pIPrj As VSSItem
Dim Local As String
Dim Comment As String
Dim returnValue As Boolean

returnValue = instance.BeforeAdd(pIPrj, Local, Comment)
bool BeforeAdd (
    [InAttribute] VSSItem pIPrj,
    [InAttribute] string Local,
    [InAttribute] string Comment
)
bool BeforeAdd (
    [InAttribute] VSSItem^ pIPrj, 
    [InAttribute] String^ Local, 
    [InAttribute] String^ Comment
)
boolean BeforeAdd (
    /** @attribute InAttribute() */ VSSItem pIPrj, 
    /** @attribute InAttribute() */ String Local, 
    /** @attribute InAttribute() */ String Comment
)
function BeforeAdd (
    pIPrj : VSSItem, 
    Local : String, 
    Comment : String
) : boolean

Parameters

  • pIPrj
    A reference of the IVSSItem type to an object representing an added file.
  • Local
    A string representing a fully qualified path to the local copy of an added file.
  • Comment
    Optional. A string containing a comment. The default is an empty string.

Remarks

[IDL]

HRESULT BeforeAdd ([in]IVSSItem *piPrj, [in]BSTR Local, [out,retval]boolean *pbContinue);

See Also

Reference

IVSSEvents Interface
IVSSEvents Members
Microsoft.VisualStudio.SourceSafe.Interop Namespace