Click or drag to resize
IReadOnlyAttribute Methods

The IReadOnlyAttribute type exposes the following members.

Methods
  NameDescription
Public methodAsBoolean
Value converted to a nullable boolean. If the value cannot be converted, an exception is thrown
Public methodAsBoolean(Boolean)
Value converted to a boolean using the default value if null. If the value cannot be converted, an exception is thrown
Public methodAsDateTime
Value converted to a nullable DateTime in the local timezone. If the value cannot be converted, an exception is thrown
Public methodAsDateTime(DateTime)
Value converted to a DateTime in the local timezone using the default value if null. If the value cannot be converted, an exception is thrown
Public methodAsDateTimeUtc
Value converted to a nullable DateTime in the UTC timezone. If the value cannot be converted, an exception is thrown
Public methodAsDateTimeUtc(DateTime)
Value converted to a DateTime in the UTC timezone using the default value if null. If the value cannot be converted, an exception is thrown
Public methodAsDouble
Value converted to a nullable double. If the value cannot be converted, an exception is thrown
Public methodAsDouble(Double)
Value converted to a double using the default value if null. If the value cannot be converted, an exception is thrown
Public methodAsGuid
Value converted to a nullable Guid. If the value cannot be converted, an exception is thrown
Public methodAsGuid(Guid)
Value converted to a Guid using the default value if null. If the value cannot be converted, an exception is thrown
Public methodAsInt
Value converted to a nullable int. If the value cannot be converted, an exception is thrown
Public methodAsInt(Int32)
Value converted to a int using the default value if null. If the value cannot be converted, an exception is thrown
Public methodAsLong
Value converted to a nullable long. If the value cannot be converted, an exception is thrown
Public methodAsLong(Int64)
Value converted to a long using the default value if null. If the value cannot be converted, an exception is thrown
Public methodAsString
Value converted to a string using the default value if null.
Top
Extension Methods
  NameDescription
Public Extension MethodHasValue
Indicates that the attribute is neither null nor empty
(Defined by ItemExtensions.)
Top
See Also