Field 成员
Represents a field in a list on a Microsoft SharePoint Foundation Web site.
Field 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
Field | Initializes a new instance of the Field object. |
页首
属性
名称 | 说明 | |
---|---|---|
AutoIndexed | ||
CanBeDeleted | Gets a value that specifies whether the field can be deleted. | |
Context | Returns the context that is associated with the client object. (从 ClientObject 继承。) | |
DefaultValue | Gets or sets a value that specifies the default value for the field. | |
Description | Gets or sets a value that specifies the description of the field. | |
DescriptionResource | ||
Direction | Gets or sets a value that specifies the reading order of the field. | |
EnforceUniqueValues | Gets or sets a Boolean value that specifies whether to enforce uniqueness in column values. The default is false. | |
EntityPropertyName | Gets the name of the entity property for the list item entity that uses this field. | |
FieldTypeKind | Gets or sets a value that specifies the type of the field. | |
Filterable | Gets a value that specifies whether list items in the list can be filtered by the field value. | |
FromBaseType | Gets a Boolean value that indicates whether the field derives from a base field type. | |
Group | Gets or sets a value that specifies the field group. | |
Hidden | Gets or sets a value that specifies whether the field is hidden in list views and list forms. | |
Id | Gets a value that specifies the field identifier. | |
Indexed | Gets or sets a Boolean value that specifies whether the field is indexed. | |
InternalName | Gets a value that specifies the field internal name. | |
JSLink | When implemented in a derived class, gets or sets the name of an external JavaScript file that contains any client rendering logic for fields of the derived type. | |
ObjectData | Gets the object data for the current client object. (从 ClientObject 继承。) | |
ObjectVersion | Gets a string that indicates the version of the current client object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。) | |
Path | Tracks how a client object is created in the ClientRuntimeContext class so that the object can be recreated on the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。) | |
ReadOnlyField | Gets or sets a value that specifies whether the value of the field is read-only. | |
Required | Gets or sets a value that specifies whether the field requires a value. | |
SchemaXml | Gets or sets a value that specifies the XML schema that defines the field. | |
SchemaXmlWithResourceTokens | Gets the schema that defines the field and includes resource tokens. | |
Scope | Gets a value that specifies the server-relative URL of the list or the site that the field belongs to. | |
Sealed | Gets a value that specifies whether properties on the field cannot be changed and whether the field cannot be deleted. | |
ServerObjectIsNull | Gets the server object and returns null if the server object is null. (从 ClientObject 继承。) | |
Sortable | Gets a value that specifies whether list items in the list can be sorted by the field value. | |
StaticName | Gets or sets a value that specifies a customizable identifier of the field. | |
Tag | Gets or sets data that is associated with the client object. (从 ClientObject 继承。) | |
Title | Gets or sets a value that specifies the display name of the field. | |
TitleResource | ||
TypeAsString | Gets or sets a value that specifies the type of the field. | |
TypeDisplayName | Gets a value that specifies the display name for the type of the field. | |
TypedObject | Gets the object with the correct type information returned from the server. (从 ClientObject 继承。) | |
TypeShortDescription | Gets a value that specifies the description for the type of the field. | |
ValidationFormula | Gets or sets a value that specifies the data validation criteria for the value of the field. | |
ValidationMessage | Gets or sets a value that specifies the error message returned when data validation fails for the field. |
页首
方法
名称 | 说明 | |
---|---|---|
CheckUninitializedProperty | Checks to determine whether the specified value type property of a ClientObject has been initialized. (从 ClientObject 继承。) | |
CustomFromJson | Returns a Boolean value that indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。) | |
DeleteObject | Deletes the field from the list, from the site, or from the content types within the list. | |
FromJson | Indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。) | |
InitNonPropertyFieldFromJson | Initializes a non-property field of the client object based on JavaScript 对象表示法 (JSON) data from the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。) | |
InitOnePropertyFromJson | (覆盖 ClientObject.InitOnePropertyFromJson(String, JsonReader)。) | |
IsObjectPropertyInstantiated | Indicates whether the specified property of the client object is instantiated. (从 ClientObject 继承。) | |
IsPropertyAvailable | Returns a Boolean value that indicates whether the specified scalar property has been retrieved or set. (从 ClientObject 继承。) | |
LoadExpandoFields | Initializes the extended properties associated with the client object when overridden in a derived class. (从 ClientObject 继承。) | |
RefreshLoad | Reloads all scalar properties associated with the client object when overridden in a derived class. (从 ClientObject 继承。) | |
RemoveFromParentCollection | Removes the current client object from the parent client object collection. (从 ClientObject 继承。) | |
Retrieve() | Retrieves all scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。) | |
Retrieve([]) | Retrieves the specified scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。) | |
SetShowInDisplayForm | Sets the value of the ShowInDisplayForm property for this field. | |
SetShowInEditForm | Sets the value of ShowInEditForm property for this field. | |
SetShowInNewForm | Sets the value of ShowInNewForm property for this field. | |
ToString | (从 Object 继承。) | |
Update | Commits changed properties of the field. | |
UpdateAndPushChanges | Commits changed properties of the field and propagates changes to all lists that use the field. | |
UpdateClientObjectPropertyType | Updates the client object property's value to have correct type by using the type information returned from the server. (从 ClientObject 继承。) | |
ValidateSetValue | Validates and sets the value of the field for the list item based on an implementation-specific transformation of the value. |
页首