共用方式為


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

'宣告
Function CloseItemTextImage ( _
    pszMkDocument As String, _
    vsptipDisposition As UInteger, _
    pTextImage As VsTextImage _
) As Integer
'用途
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.

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

See Also

Reference

IVsProjectTextImageProvider Interface

IVsProjectTextImageProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace