Interface IRegistrationPolicy
Interface for managing how to handle
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IRegistrationPolicy
Methods
AllowTypeAutoRegistration(Type)
Allows type automatic registration for the specified type. NOTE: automatic type registration is NOT recommended.
Declaration
bool AllowTypeAutoRegistration(Type type)
Parameters
|
Type
type
The type. |
Returns
|
System.Boolean
True to register the type automatically, false otherwise. |
HandleRegistration(IUserDataDescriptor, IUserDataDescriptor)
Called to handle the registration or deregistration of a type descriptor. Must return the type descriptor to be registered, or null to remove the registration.
Declaration
IUserDataDescriptor HandleRegistration(IUserDataDescriptor newDescriptor, IUserDataDescriptor oldDescriptor)
Parameters
|
IUserDataDescriptor
newDescriptor
The new descriptor, or null if this is a deregistration. |
|
IUserDataDescriptor
oldDescriptor
The old descriptor, or null if no descriptor was previously registered for this type. |
Returns
|
IUserDataDescriptor
|