Click or drag to resize

ExtensionMethodsHasProperty Method

Determines whether the specified property name has property.

Namespace:  SanteDB
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax
public static bool HasProperty(
	this ExpandoObject source,
	string propertyName
)

Parameters

source
Type: System.DynamicExpandoObject
The source.
propertyName
Type: SystemString
Name of the property.

Return Value

Type: Boolean
true if the specified property name has property; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ExpandoObject. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource - Value cannot be null
ArgumentExceptionValue cannot be null or empty - propertyName
See Also