CommonUtility.TryGetField Method
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Shared Function TryGetField ( _
fields As SPFieldCollection, _
fieldId As Guid _
) As SPField
'Usage
Dim fields As SPFieldCollection
Dim fieldId As Guid
Dim returnValue As SPField
returnValue = CommonUtility.TryGetField(fields, _
fieldId)
public static SPField TryGetField(
SPFieldCollection fields,
Guid fieldId
)
Parameters
- fields
Type: Microsoft.SharePoint.SPFieldCollection
- fieldId
Type: System.Guid
Return Value
Type: Microsoft.SharePoint.SPField
Returns SPField.