SpreadsheetFieldValueGetEnumT Method |
Returns the value for the field passed across or null if the field could not be found.
Namespace: Test.FrameworkAssembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public Nullable<T> GetEnum<T>(
string fieldName
)
where T : struct, new()
Public Function GetEnum(Of T As {Structure, New}) (
fieldName As String
) As Nullable(Of T)
public:
generic<typename T>
where T : value class, gcnew()
Nullable<T> GetEnum(
String^ fieldName
)
member GetEnum :
fieldName : string -> Nullable<'T> when 'T : struct, new()
Parameters
- fieldName
- Type: SystemString
Type Parameters
- T
- The type of the enumeration to cast the result to. Passing a non-enum type here will cause an exception to be thrown when the value cell has non-null content.
Return Value
Type:
NullableTSee Also