SPPersistedObject.GetChild<T> 方法 (String)
返回基于指定的名称的持久对象的子对象。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function GetChild(Of T As {New, SPPersistedObject}) ( _
name As String _
) As T
用法
Dim instance As SPPersistedObject
Dim name As String
Dim returnValue As T
returnValue = instance.GetChild(name)
public T GetChild<T>(
string name
)
where T : new(), SPPersistedObject
类型参数
- T
要定位的对象。
参数
name
类型:System.String一个字符串,包含子对象的名称。
返回值
类型:T
表示持久对象的子级的类型。