C# 클래스 Glyma.SharePoint.Search.DynamicTypeExtensions

파일 보기 프로젝트 열기: chris-tomich/Glyma

공개 메소드들

메소드 설명
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.

메소드 상세

Initialise() 공개 정적인 메소드

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.
리턴 void

SetValue() 공개 정적인 메소드

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.
리턴 void