IVsProjectTextImageProvider.CloseItemTextImage Method
Closes the text image of a project item.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function CloseItemTextImage ( _
pszMkDocument As String, _
vsptipDisposition As UInteger, _
pTextImage As VsTextImage _
) As Integer
'Uso
Dim instance As IVsProjectTextImageProvider
Dim pszMkDocument As String
Dim vsptipDisposition As UInteger
Dim pTextImage As VsTextImage
Dim returnValue As Integer
returnValue = instance.CloseItemTextImage(pszMkDocument, _
vsptipDisposition, pTextImage)
int CloseItemTextImage(
string pszMkDocument,
uint vsptipDisposition,
VsTextImage pTextImage
)
int CloseItemTextImage(
[InAttribute] String^ pszMkDocument,
[InAttribute] unsigned int vsptipDisposition,
[InAttribute] VsTextImage^ pTextImage
)
abstract CloseItemTextImage :
pszMkDocument:string *
vsptipDisposition:uint32 *
pTextImage:VsTextImage -> int
function CloseItemTextImage(
pszMkDocument : String,
vsptipDisposition : uint,
pTextImage : VsTextImage
) : int
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.
Remarks
COM Signature
From vsshell.idl:
[C++]
HRESULT IVsProjectTextImageProvider::CloseItemTextImage(
[in] LPCOLESTR pszMkDocument,
[in] VSPTIP_DISPOSITION vsptipDisposition
);
.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.
See Also
Reference
IVsProjectTextImageProvider Interface