NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ValueProvider.CanProvideValue

Returns whether or not the value provider is capable of providing a value.

[Visual Basic]
Overridable Public Function CanProvideValue( _
   ByVal component As Object, _
   ByVal propertyName As String, _
   ByVal exp As Object _
) As Boolean
[C#]
public virtual bool CanProvideValue(
   object component,
   string propertyName,
   object exp
);
[C++]
public: virtual bool CanProvideValue(
   Object* component,
   String* propertyName,
   Object* exp
);
[JScript]
public function CanProvideValue(
   component : Object,
   propertyName : String,
   exp : Object
) : Boolean;

Parameters

component
The component whose property is being depersisted.
propertyName
The property that is being depersisted.
exp
The expression to determine if this value provider can provide a value for.

Return Value

true if the value provider is capable of providing a value, false otherwise.

Remarks

This is called for every expression found in the code. If the IValueProvider returns true, then the ProvideValue method will be called.

See Also

ValueProvider Class | ValueProvider Members | System.ComponentModel.Design Namespace