Share via


IsRequired Property

The IsRequired property contains the flag that indicates whether a value is required for this property.

Property IsRequired As Boolean[C++]
Get method:
HRESULT get_IsRequired(VARIANT_BOOL*pIsRequired);
Put method:
HRESULT put_IsRequired(VARIANT_BOOLvarIsRequired);

[Visual Basic]

Parameters

None.

Return Values

This property returns a Boolean that contains the flag that indicates whether a value is required.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters

Get method:

  • pIsRequired
    [out, retval] Pointer to a VARIANT_BOOL that contains the flag that indicates whether a value is required.

Put method:

  • varIsRequired
    [in] VARIANT_BOOL that contains the flag that indicates whether a value is required.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.

Example

To see this property in a fuller context, see Document Management Object Model Sample.