SPCmdlet.GetPropV<S> 方法
从指定的字段名称与相关联的Fields属性检索的结构。
命名空间: Microsoft.SharePoint.PowerShell
程序集: Microsoft.SharePoint.PowerShell(位于 Microsoft.SharePoint.PowerShell.dll 中)
语法
声明
Protected Function GetPropV(Of S As {Structure, New}) ( _
fieldName As String _
) As S
用法
Dim fieldName As String
Dim returnValue As S
returnValue = Me.GetPropV(fieldName)
protected S GetPropV<S>(
string fieldName
)
where S : struct, new()
类型参数
- S
结构的类型。
参数
fieldName
类型:System.String提供字段名称的字符串。
返回值
类型:S
结构,它是强制转换为泛型类型S ,与指定的字段名称。如果没有这样的对象存在,则此方法返回 null。