Share via


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)

Syntax

'Declaration
Function BeforeRename ( _
    <InAttribute> pIItem As VSSItem, _
    <InAttribute> NewName As String _
) As Boolean
'Usage
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

Parameters

  • 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.

Remarks

[IDL]

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

See Also

Reference

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