SPCmdlet.GetProp<T> method
Retrieves the object from the 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 GetProp(Of T As Class) ( _
fieldName As String _
) As T
'Usage
Dim fieldName As String
Dim returnValue As T
returnValue = Me.GetProp(fieldName)
protected T GetProp<T>(
string fieldName
)
where T : class
- T
The type of the object.
fieldName
Type: System.StringA string that provides the field name.
Type: T
An object that is cast to the generic type T and associated with the specified field name. If no such object exists, this method returns null.