Click or drag to resize
IAttribute Methods

The IAttribute 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
(Inherited from IReadOnlyAttribute.)
Public methodAsBoolean(Boolean)
Value converted to a boolean using the default value if null. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsDateTime
Value converted to a nullable DateTime in the local timezone. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
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
(Inherited from IReadOnlyAttribute.)
Public methodAsDateTimeUtc
Value converted to a nullable DateTime in the UTC timezone. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
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
(Inherited from IReadOnlyAttribute.)
Public methodAsDouble
Value converted to a nullable double. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsDouble(Double)
Value converted to a double using the default value if null. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsGuid
Value converted to a nullable Guid. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsGuid(Guid)
Value converted to a Guid using the default value if null. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsInt
Value converted to a nullable int. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsInt(Int32)
Value converted to a int using the default value if null. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsLong
Value converted to a nullable long. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsLong(Int64)
Value converted to a long using the default value if null. If the value cannot be converted, an exception is thrown
(Inherited from IReadOnlyAttribute.)
Public methodAsString
Value converted to a string using the default value if null.
(Inherited from IReadOnlyAttribute.)
Public methodRemove
Remove the attribute from it's parent
Public methodSet
Set the value of this attribute
Top
Extension Methods
  NameDescription
Public Extension MethodHasValue
Indicates that the attribute is neither null nor empty
(Defined by ItemExtensions.)
Top
See Also