Compartilhar via


IVsProject5.IsDocumentInProject2 Method

Determines whether the specified document is in a project.

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

Syntax

'Declaration
Function IsDocumentInProject2 ( _
    pszMkDocument As String, _
    <OutAttribute> ByRef pfFound As Integer, _
    <OutAttribute> ByRef pdwPriority2 As Integer, _
    <OutAttribute> ByRef pitemid As UInteger _
) As Integer
int IsDocumentInProject2(
    string pszMkDocument,
    out int pfFound,
    out int pdwPriority2,
    out uint pitemid
)
int IsDocumentInProject2(
    [InAttribute] String^ pszMkDocument, 
    [OutAttribute] int% pfFound, 
    [OutAttribute] int% pdwPriority2, 
    [OutAttribute] unsigned int% pitemid
)
abstract IsDocumentInProject2 : 
        pszMkDocument:string * 
        pfFound:int byref * 
        pdwPriority2:int byref * 
        pitemid:uint32 byref -> int
function IsDocumentInProject2(
    pszMkDocument : String, 
    pfFound : int, 
    pdwPriority2 : int, 
    pitemid : uint
) : int

Parameters

  • pszMkDocument
    Type: String

    The path of the document.

  • pfFound
    Type: Int32%

    [out] true if the document is found in the project, otherwise false.

  • pdwPriority2
    Type: Int32%

    [out] The priority. For a list of known priority values, see__VSDOCUMENTPRIORITY2.

  • pitemid
    Type: UInt32%

    [out] The item ID of the document.

Return Value

Type: Int32
The HRESULT.

.NET Framework Security

See Also

Reference

IVsProject5 Interface

Microsoft.VisualStudio.Shell.Interop Namespace