Partager via


IVsEditorFactoryNotify.NotifyDependentItemSaved Method

Definition

Method called when a file is saved.

public:
 int NotifyDependentItemSaved(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemidParent, System::String ^ pszMkDocumentParent, System::UInt32 itemidDpendent, System::String ^ pszMkDocumentDependent);
public:
 int NotifyDependentItemSaved(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int itemidParent, Platform::String ^ pszMkDocumentParent, unsigned int itemidDpendent, Platform::String ^ pszMkDocumentDependent);
int NotifyDependentItemSaved(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, unsigned int itemidParent, std::wstring const & pszMkDocumentParent, unsigned int itemidDpendent, std::wstring const & pszMkDocumentDependent);
public int NotifyDependentItemSaved (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemidParent, string pszMkDocumentParent, uint itemidDpendent, string pszMkDocumentDependent);
abstract member NotifyDependentItemSaved : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * uint32 * string -> int
Public Function NotifyDependentItemSaved (pHier As IVsHierarchy, itemidParent As UInteger, pszMkDocumentParent As String, itemidDpendent As UInteger, pszMkDocumentDependent As String) As Integer

Parameters

pHier
IVsHierarchy

[in] Pointer to the IVsHierarchy for the saved item.

itemidParent
UInt32

[in] The item ID (VSITEMID) of the file's parent object.

pszMkDocumentParent
String

[in] A pointer to a string containing the name of the parent document.

itemidDpendent
UInt32

[in] The item ID (VSITEMID) of the file's dependent object.

pszMkDocumentDependent
String

[in] A pointer to a string containing the name of the dependent document.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsEditorFactoryNotify::NotifyDependentItemSaved(  
   [in] IVsHierarchy *pHier,   
   [in] VSITEMID itemidParent,   
   [in] LPCOLESTR pszMkDocumentParent,   
   [in] VSITEMID itemidDpendent,   
   [in] LPCOLESTR pszMkDocumentDependent  
);  

Applies to