C# Class Glyma.SharePoint.Search.DynamicTypeExtensions

Afficher le fichier Open project: chris-tomich/Glyma

Méthodes publiques

Méthode Description
Initialise ( this node, ITypeDescriptorCollection entityFields ) : void

Initialises a DynamicType object using details from a ITypeDescriptorCollection object.

SetValue ( this node, string fieldName, object value ) : void

Sets the value for a specified field in a DynamicType object.

If the field doesn't exist in the DynamicType object but the DynamicType object contains a "content" field, the field and its value is appended to the "content" field.

Method Details

Initialise() public static méthode

Initialises a DynamicType object using details from a ITypeDescriptorCollection object.
public static Initialise ( this node, ITypeDescriptorCollection entityFields ) : void
node this A DynamicType object to initialise.
entityFields ITypeDescriptorCollection A ITypeDescriptorCollection object containing the details of the fields.
Résultat void

SetValue() public static méthode

Sets the value for a specified field in a DynamicType object.
If the field doesn't exist in the DynamicType object but the DynamicType object contains a "content" field, the field and its value is appended to the "content" field.
public static SetValue ( this node, string fieldName, object value ) : void
node this A DynamicType object to update.
fieldName string The name of the field to update.
value object The value of the field.
Résultat void