This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ResourceValueProvider Members
Public:
Constructor
Properties
Methods
AddResource |
Creates a new expression that represents the provided name/value pair |
BeginDepersist |
Called by the code generator when before any statements in the code are parsed. This allows the provider to clear any previous state. |
BeginPersist |
Called by the code generator when before any statements in the code are generated. This allows the provider to clear any previous state. |
CanProvideValue |
Called for every expression found in the code. If the IValueProvider returns true, then the ProvideValue method will be called. |
EndDepersist |
Called by the code generator after all statements have been parsed. |
EndPersist |
Called by the code generator after all statements have been generated. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetExpressionLevel |
Determines the level of support for generating an expression for the specified property on the specified object. If a value provider returns anything but ValueExpressionLevel.NotSupported then it must return a non-null value from ProvideExpression. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLocalVariableDeclaration |
If this value provider requires that a local variable is declared then this must return a non-null ICodeStatement. |
GetRequireComponents (inherited from ValueProvider) |
Gets the components required to be initialized before the value provider can provide values. |
GetType (inherited from Object) |
Gets the Type of the Object. |
IsLocalVariableDeclaration |
Determines if the specified statement is the local variable declaration for this value provider. |
ProvideExpression |
Creates a new expression that represents the property value for the specified component. |
ProvideValue |
Retrieves the value that the code expression represents. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
ResourceValueProvider Class | System.ComponentModel.Design Namespace