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)
Syntax
'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()
Type Parameters
- S
The type of the structure.
Parameters
fieldName
Type: System.StringA string that provides the field name.
Return Value
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.