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.

页首

另请参阅

引用

Field 类

Microsoft.SharePoint.Client 命名空间