SPCmdlet.GetPropV<S> method
Retrieves the structure from Fields property that is associated with the specified field name.
Namespace: Microsoft.SharePoint.PowerShell
Assembly: Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)
'Declaration
Protected Function GetPropV(Of S As {Structure, New}) ( _
fieldName As String _
) As S
'Usage
Dim fieldName As String
Dim returnValue As S
returnValue = Me.GetPropV(fieldName)
protected S GetPropV<S>(
string fieldName
)
where S : struct, new()
- S
The type of the structure.
fieldName
Type: System.StringA string that provides the field name.
Type: S
A structure that is cast to the generic type S and associated with the specified field name. If no such object exists, this method returns null.