CustomPropertyValueExtensionsGetValueOrDefault Method |
Gets the value or default if the propertyValue is null.
Namespace:
Aloe.EnterpriseOne.Model.General
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic static string GetValueOrDefault(
this CustomPropertyValue propertyValue,
string defaultValue = null
)
<ExtensionAttribute>
Public Shared Function GetValueOrDefault (
propertyValue As CustomPropertyValue,
Optional defaultValue As String = Nothing
) As String
public:
[ExtensionAttribute]
static String^ GetValueOrDefault(
CustomPropertyValue^ propertyValue,
String^ defaultValue = nullptr
)
[<ExtensionAttribute>]
static member GetValueOrDefault :
propertyValue : CustomPropertyValue *
?defaultValue : string
(* Defaults:
let _defaultValue = defaultArg defaultValue null
*)
-> string
Parameters
- propertyValue
- Type: Aloe.EnterpriseOne.Model.GeneralCustomPropertyValue
The property value. - defaultValue (Optional)
- Type: SystemString
The default value.
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CustomPropertyValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also