Field.Required 属性

Gets or sets a value that specifies whether the field requires a value.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Property Required As Boolean
    Get
    Set
用法
Dim instance As Field
Dim value As Boolean

value = instance.Required

instance.Required = value
public bool Required { get; set; }

属性值

类型:System.Boolean
Returns Booleantrue if the field requires a value; otherwise, returns false.

异常

异常 条件
[System.NotSupportedException]

Value is set to true, and the list is an external list. Error code: -1.

备注

If the field requires a value, this value must be set to true. Otherwise, it must be set to false.

另请参阅

引用

Field 类

Field 成员

Microsoft.SharePoint.Client 命名空间