IReadOnlyAttribute Methods |
The IReadOnlyAttribute type exposes the following members.
Name | Description | |
---|---|---|
AsBoolean | Value converted to a nullable boolean.
If the value cannot be converted, an exception is thrown | |
AsBoolean(Boolean) | Value converted to a boolean using the default value if null.
If the value cannot be converted, an exception is thrown | |
AsDateTime | Value converted to a nullable DateTime in the local timezone.
If the value cannot be converted, an exception is thrown | |
AsDateTime(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 | |
AsDateTimeUtc | Value converted to a nullable DateTime in the UTC timezone.
If the value cannot be converted, an exception is thrown | |
AsDateTimeUtc(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 | |
AsDouble | Value converted to a nullable double.
If the value cannot be converted, an exception is thrown | |
AsDouble(Double) | Value converted to a double using the default value if null.
If the value cannot be converted, an exception is thrown | |
AsGuid | Value converted to a nullable Guid.
If the value cannot be converted, an exception is thrown | |
AsGuid(Guid) | Value converted to a Guid using the default value if null.
If the value cannot be converted, an exception is thrown | |
AsInt | Value converted to a nullable int.
If the value cannot be converted, an exception is thrown | |
AsInt(Int32) | Value converted to a int using the default value if null.
If the value cannot be converted, an exception is thrown | |
AsLong | Value converted to a nullable long.
If the value cannot be converted, an exception is thrown | |
AsLong(Int64) | Value converted to a long using the default value if null.
If the value cannot be converted, an exception is thrown | |
AsString | Value converted to a string using the default value if null. |
Name | Description | |
---|---|---|
HasValue |
Indicates that the attribute is neither null nor empty
(Defined by ItemExtensions.) |