DisplayContext Property
The DisplayContext property specifies the visibility of the property definition in the user interface.
Property DisplayContext As Long[C++]
Get method:
HRESULT get_DisplayContext(LONG*pDisplayContext);
Put method:
HRESULT put_DisplayContext(LONGvarDisplayContext);
[Visual Basic]
Parameters
None.
Return Values
This property returns a Long that indicates how the property definition is displayed. See EnumKnowledge_DisplayContext for the possible values. Although named and defined as an enum, EnumKnowledge_DisplayContext is a bit mask. The bit mask value must be either 7 or 0.
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:
- pDisplayContext
[out, retval] Pointer to a LONG that indicates how the property definition is displayed. See EnumKnowledge_DisplayContext for the possible values. Although named and defined as an enum, EnumKnowledge_DisplayContext is a bit mask. The bit mask value must be either 7 or 0.
Put method:
- varDisplayContext
[in] LONG that indicates how the property definition is displayed. See EnumKnowledge_DisplayContext for the possible values.
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.