 | ExtensionMethodsHasProperty Method |
Determines whether the specified property name has property.
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static bool HasProperty(
this ExpandoObject source,
string propertyName
)
<ExtensionAttribute>
Public Shared Function HasProperty (
source As ExpandoObject,
propertyName As String
) As Boolean
public:
[ExtensionAttribute]
static bool HasProperty(
ExpandoObject^ source,
String^ propertyName
)
[<ExtensionAttribute>]
static member HasProperty :
source : ExpandoObject *
propertyName : string -> bool Parameters
- source ExpandoObject
- The source.
- propertyName String
- Name of the property.
Return Value
Booleantrue 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
See Also