ExtensionsGetValueOrDefault Method (ResourceObject, String) |
Gets the value of the specified attribute or null if the attribute doesn't exist on the object
Namespace:
Lithnet.ResourceManagement.Client
Assembly:
Lithnet.ResourceManagement.Client (in Lithnet.ResourceManagement.Client.dll) Version: 1.0.6435.24467
Syntaxpublic static Object GetValueOrDefault(
this ResourceObject resource,
string attributeName
)
<ExtensionAttribute>
Public Shared Function GetValueOrDefault (
resource As ResourceObject,
attributeName As String
) As Object
public:
[ExtensionAttribute]
static Object^ GetValueOrDefault(
ResourceObject^ resource,
String^ attributeName
)
Parameters
- resource
- Type: Lithnet.ResourceManagement.ClientResourceObject
The resource to set the value on - attributeName
- Type: SystemString
The name of the attribute
Return Value
Type:
Object[Missing <returns> documentation for "M:Lithnet.ResourceManagement.Client.Extensions.GetValueOrDefault(Lithnet.ResourceManagement.Client.ResourceObject,System.String)"]
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