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
'Usage
Dim instance As IVsSccVirtualFolders
Dim pszItemName As String
Dim pfResult As Boolean
Dim returnValue As Integer
returnValue = instance.IsItemChildOfVirtualFolder(pszItemName, _
pfResult)
int IsItemChildOfVirtualFolder(
string pszItemName,
out bool pfResult
)
int IsItemChildOfVirtualFolder(
[InAttribute] String^ pszItemName,
[OutAttribute] bool% pfResult
)
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
- 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.