Поделиться через


IVsSccVirtualFolders.IsItemChildOfVirtualFolder Method

This method determines if a specified item is a child of any virtual folder.

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

Syntax

'Declaration
Function IsItemChildOfVirtualFolder ( _
    pszItemName As String, _
    <OutAttribute> ByRef pfResult As Boolean _
) As Integer
int IsItemChildOfVirtualFolder(
    string pszItemName,
    out bool pfResult
)
int IsItemChildOfVirtualFolder(
    [InAttribute] String^ pszItemName, 
    [OutAttribute] bool% pfResult
)
abstract IsItemChildOfVirtualFolder : 
        pszItemName:string * 
        pfResult:bool byref -> int 
function IsItemChildOfVirtualFolder(
    pszItemName : String, 
    pfResult : boolean
) : int

Parameters

  • pszItemName
    Type: System.String
    [in] The name of the child item.
  • pfResult
    Type: System.Boolean%
    [out] Returns true if the item is a file or subfolder of any virtual folder. Otherwise, it returns false.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Note that this method does not indicate which virtual folder the item is a child of, only that it is a child of a virtual folder.

COM Signature

From ivssccvirtualfolders.idl

HRESULT IsItemChildOfVirtualFolder(
   [in] LPCOLESTR pszItemName,
   [out] VARIANT_BOOL * pfResult
);

.NET Framework Security

See Also

Reference

IVsSccVirtualFolders Interface

Microsoft.VisualStudio.Shell.Interop Namespace