Show / Hide Table of Contents

Class PermanentRegistrationPolicy

A registration policy which makes registration permanent and not deletable. Deregistrations are not allowed and registrations of a new descriptor are not allowed if a descriptor is already registered for that type.

Inheritance
System.Object
PermanentRegistrationPolicy
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class PermanentRegistrationPolicy : IRegistrationPolicy

Methods

AllowTypeAutoRegistration(Type)

Allows type automatic registration for the specified type. NOTE: automatic type registration is NOT recommended.

Declaration
public bool AllowTypeAutoRegistration(Type type)
Parameters
Type type

The type.

Returns
System.Boolean

True to register the type automatically, false otherwise.

Implements
IRegistrationPolicy.AllowTypeAutoRegistration(Type)
Exceptions
System.NotImplementedException

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
public 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

Implements
IRegistrationPolicy.HandleRegistration(IUserDataDescriptor, IUserDataDescriptor)
Back to top Built by Itinero, MIT licensed.