SPCache.GetTree Method
Returns a List of cache objects under a specified parent object in a cache with the specified object type.
Namespace: Microsoft.Office.Server.ObjectCache
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub GetTree ( _
objectTypeName As String, _
id As String, _
ByRef cacheObjects As List(Of SPCachedObject) _
)
'Usage
Dim instance As SPCache
Dim objectTypeName As String
Dim id As String
Dim cacheObjects As List(Of SPCachedObject)
instance.GetTree(objectTypeName, id, cacheObjects)
public void GetTree(
string objectTypeName,
string id,
ref List<SPCachedObject> cacheObjects
)
Parameters
- objectTypeName
Type: System.String
- id
Type: System.String
- cacheObjects
Type: System.Collections.Generic.List<SPCachedObject>
The List that will contain the cached objects that are under the object with the specified object type and identifier in the hierarchy.
Remarks
The parent-child relationship is specified by the ParentID property.