WorksharingDisplaySettings.GetOrCreateWorksharingDisplaySettings
Method
Description:
Returns the worksharing display settings for the document, creating new settings for the current user if necessary.
Returns the worksharing display settings for the document, creating new settings for the current user if necessary.
Remarks:
Note that these settings are available even in models that are not workshared. This is to allow pre-configuring the display settings before enabling worksets so that they can be stored in template files.
Note that these settings are available even in models that are not workshared. This is to allow pre-configuring the display settings before enabling worksets so that they can be stored in template files.
Syntax
public static WorksharingDisplaySettings GetOrCreateWorksharingDisplaySettings(
Document doc
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| doc | Document | The document of interest. |
Return Value
| Type | Description |
|---|---|
| WorksharingDisplaySettings | The worksharing display settings for the document. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | doc is not a project document. |
| ArgumentNullException | A non-optional argument was null |