ElementHelpersValidateProperty Method |
Determines whether the property key/value for the specified element can be legally set.
This is typically used as a pre-condition check prior to setting a property.
Throws ArgumentException whether the triple is legal and if not, a clear reason message is provided
Namespace:
VelocityGraph.Frontenac.Blueprints.Util
Assembly:
VelocityGraph (in VelocityGraph.dll) Version: 11.1.0.0 (11.1)
Syntax public static void ValidateProperty(
this IElement element,
string key,
Object value
)
<ExtensionAttribute>
Public Shared Sub ValidateProperty (
element As IElement,
key As String,
value As Object
)
public:
[ExtensionAttribute]
static void ValidateProperty(
IElement^ element,
String^ key,
Object^ value
)
[<ExtensionAttribute>]
static member ValidateProperty :
element : IElement *
key : string *
value : Object -> unit
Parameters
- element
- Type: VelocityGraph.Frontenac.BlueprintsIElement
the element for the property to be set - key
- Type: SystemString
the key of the property - value
- Type: SystemObject
the value of the property
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IElement. 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