IVsProjectTextImageProvider::CloseItemTextImage Method (String^, UInt32, VsTextImage^)

 

Closes the text image of a project item.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int CloseItemTextImage(
	String^ pszMkDocument,
	unsigned int vsptipDisposition,
	VsTextImage^ pTextImage
)

Parameters

pszMkDocument
Type: System::String^

[in] Pointer to a string containing the file name and path corresponding to the text image.

vsptipDisposition
Type: System::UInt32

[in] Integer. A value from the __VSPTIP_DISPOSITION enumeration indicating whether or not the file was modified or whether to just close it.

pTextImage
Type: Microsoft.VisualStudio.TextManager.Interop::VsTextImage^

[in] Pointer to the IVsTextImage interface of the text image.

Return Value

Type: System::Int32

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

From vsshell.idl:

[C++]

HRESULT IVsProjectTextImageProvider::CloseItemTextImage(
   [in] LPCOLESTR pszMkDocument, 
   [in] VSPTIP_DISPOSITION vsptipDisposition
);
Return to top
Show: