Method GetFields
GetFields<T>(Document, String)
Returns an array of IIndexableFields with the given name, cast to type T
.
This method returns an empty array when there are no
matching fields. It never returns null
.
Declaration
public static T[] GetFields<T>(this Document document, string name)
where T : IIndexableField
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | the name of the field |
Returns
Type | Description |
---|---|
T[] | a IndexableField[] array |
Type Parameters
Name | Description |
---|---|
T |