Method GetField
GetField<T>(Document, String)
Returns a field with the given name if any exist in this document cast to type T
, or
null
. If multiple fields exists with this name, this method returns the
first value added.
Declaration
public static T GetField<T>(this Document document, string name)
where T : IIndexableField
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | Field name |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |