Share via


CollectionPropertyConfiguration.IsOptional Method

Sets the CollectionProperty to optional (i.e. nullable).

Namespace:  System.Web.Http.OData.Builder
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Function IsOptional As CollectionPropertyConfiguration
'Usage
Dim instance As CollectionPropertyConfiguration 
Dim returnValue As CollectionPropertyConfiguration 

returnValue = instance.IsOptional()
public CollectionPropertyConfiguration IsOptional()
public:
CollectionPropertyConfiguration^ IsOptional()
member IsOptional : unit -> CollectionPropertyConfiguration
public function IsOptional() : CollectionPropertyConfiguration

Return Value

Type: System.Web.Http.OData.Builder.CollectionPropertyConfiguration
The CollectionPropertyConfiguration object.

See Also

Reference

CollectionPropertyConfiguration Class

System.Web.Http.OData.Builder Namespace