JAMS 6.x Help
IsAncestorOf Method (IFolderSQL)


Determines whether a folder is an ancestor (inclusive of both folders and the root folder) of another folder
Syntax
'Declaration
 
<System.ServiceModel.OperationContractAttribute()>
<System.ServiceModel.FaultContractAttribute(DetailType=MVPSI.JAMS.JAMSException, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=False)>
Function IsAncestorOf( _
   ByVal ancestorFolderId As System.Integer, _
   ByVal childFolderId As System.Integer _
) As System.Boolean
'Usage
 
Dim instance As IFolderSQL
Dim ancestorFolderId As System.Integer
Dim childFolderId As System.Integer
Dim value As System.Boolean
 
value = instance.IsAncestorOf(ancestorFolderId, childFolderId)
[System.ServiceModel.OperationContract()]
[System.ServiceModel.FaultContract(DetailType=MVPSI.JAMS.JAMSException, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
System.bool IsAncestorOf( 
   System.int ancestorFolderId,
   System.int childFolderId
)

Parameters

ancestorFolderId
childFolderId
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IFolderSQL Interface
IFolderSQL Members