ExtensionsHasValue Method |
Returns a value indicating whether the specified value is present on the specified attribute
Namespace:
Lithnet.ResourceManagement.Client
Assembly:
Lithnet.ResourceManagement.Client (in Lithnet.ResourceManagement.Client.dll) Version: 1.0.6435.24467
Syntaxpublic static bool HasValue(
this ResourceObject resource,
string attributeName,
Object value
)
<ExtensionAttribute>
Public Shared Function HasValue (
resource As ResourceObject,
attributeName As String,
value As Object
) As Boolean
public:
[ExtensionAttribute]
static bool HasValue(
ResourceObject^ resource,
String^ attributeName,
Object^ value
)
Parameters
- resource
- Type: Lithnet.ResourceManagement.ClientResourceObject
The resource to check if the value exists on - attributeName
- Type: SystemString
Name of the attribute - value
- Type: SystemObject
The value to check
Return Value
Type:
BooleanReturns false if ResourceObject is null or true or false depending on if the value exists on the given attribute
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ResourceObject. 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