Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Renames a document and resets its position in the hierarchy.
Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Public Function RenameDocData ( _
    attributes As UInteger, _
    hierarchy As IVsHierarchy, _
    itemId As UInteger, _
    fileName As String _
) As Integer
public int RenameDocData(
    uint attributes,
    IVsHierarchy hierarchy,
    uint itemId,
    string fileName
)
public:
virtual int RenameDocData(
    unsigned int attributes, 
    IVsHierarchy^ hierarchy, 
    unsigned int itemId, 
    String^ fileName
) sealed
abstract RenameDocData : 
        attributes:uint32 * 
        hierarchy:IVsHierarchy * 
        itemId:uint32 * 
        fileName:string -> int  
override RenameDocData : 
        attributes:uint32 * 
        hierarchy:IVsHierarchy * 
        itemId:uint32 * 
        fileName:string -> int
public final function RenameDocData(
    attributes : uint, 
    hierarchy : IVsHierarchy, 
    itemId : uint, 
    fileName : String
) : int
Parameters
- attributes 
 Type: System.UInt32- The new file attributes of the document. For a list of flags, see __VSRDTATTRIB. 
- hierarchy 
 Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy- The new IVsHierarchy interface of the document. 
- itemId 
 Type: System.UInt32- The new Item ID for the document. 
- fileName 
 Type: System.String- The new file name for the document. 
Return Value
Type: System.Int32
S_OK if the method succeeds; otherwise, it returns an error code.
Implements
IVsPersistDocData2.RenameDocData(UInt32, IVsHierarchy, UInt32, String)
IVsPersistDocData.RenameDocData(UInt32, IVsHierarchy, UInt32, String)
Remarks
This method implements the IVsPersistDocData2 interface.
.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.