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.String

    A 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.

See also

Reference

SPCmdlet class

SPCmdlet members

Microsoft.SharePoint.PowerShell namespace