IVSSEvents.BeforeRename Method 

An event that is fired before a file or a project is renamed in the SourceSafe database.

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


Function BeforeRename ( _
    <InAttribute> pIItem As VSSItem, _
    <InAttribute> NewName As String _
) As Boolean
Dim instance As IVSSEvents
Dim pIItem As VSSItem
Dim NewName As String
Dim returnValue As Boolean

returnValue = instance.BeforeRename(pIItem, NewName)
bool BeforeRename (
    [InAttribute] VSSItem pIItem,
    [InAttribute] string NewName
bool BeforeRename (
    [InAttribute] VSSItem^ pIItem, 
    [InAttribute] String^ NewName
boolean BeforeRename (
    /** @attribute InAttribute() */ VSSItem pIItem, 
    /** @attribute InAttribute() */ String NewName
function BeforeRename (
    pIItem : VSSItem, 
    NewName : String
) : boolean


  • pIItem
    A reference of the IVSSItem type to an object representing a file or a project that is renamed.
  • NewName
    A string representing a new name of a file or a project.



HRESULT BeforeRename ([in]IVSSItem *piItem, [in]BSTR NewName, [out,retval]boolean *pbContinue);

See Also


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