SPCache.GetTree 方法
返回与指定的对象类型高速缓存中的缓存对象在指定的父对象下的List 。
命名空间: Microsoft.Office.Server.ObjectCache
程序集: Microsoft.Office.Server(位于 Microsoft.Office.Server.dll 中)
语法
声明
Public Sub GetTree ( _
objectTypeName As String, _
id As String, _
ByRef cacheObjects As List(Of SPCachedObject) _
)
用法
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
)
参数
- objectTypeName
类型:System.String
- id
类型:System.String
cacheObjects
类型:System.Collections.Generic.List<SPCachedObject>将包含缓存的对象使用指定的对象类型和层次结构中的标识符的对象下的List 。
备注
由ParentID属性指定的父-子关系。