Click or drag to resize

Workspace Class

Represents a MatchPoint workspace.
Inheritance Hierarchy

Namespace:  Colygon.MatchPoint.Workspaces.Model
Assembly:  Colygon.MatchPoint (in Colygon.MatchPoint.dll) Version: 2019.2.1.0
Syntax
C#
public sealed class Workspace : BaseWorkspace

The Workspace type exposes the following members.

Constructors
  NameDescription
Public methodWorkspace(String)
Initializes a new instance of the Workspace class
Public methodWorkspace(WorkspaceTemplateConfiguration)
This constructor is used to create a new Workspace with the given template. When using this constructor a new web or site-collection will be created. In order to create a Workspace for an existing web or site-collection use Workspace(String, WorkspaceTemplateConfiguration) instead.
Public methodWorkspace(String, WorkspaceTemplateConfiguration)
Initializes a new instance of the Workspace class
Top
Properties
  NameDescription
Public propertyContentClass
Returns the content class of the current workspace.
(Overrides SPResultRecordContentClass.)
Public propertyCopyUrl (Inherited from SPResultRecord.)
Public propertyDeleteConfirmationUrl (Overrides BaseWorkspaceDeleteConfirmationUrl.)
Public propertyExists
Returns 'true' if the current SPWeb is a MatchPoint workspace.
(Overrides SPUpdatableExists.)
Public propertyId
Returns the ID of the workspace.
(Overrides BaseWorkspaceId.)
Public propertyItem (Inherited from BaseWorkspace.)
Public propertyItemId
Returns the ID of the workspace redirector item. A FileNotFoundException is thrown if the redirector item does not exist.
(Overrides BaseWorkspaceItemId.)
Public propertyListItem
Returns the workspace redirector item.
(Overrides BaseWorkspaceListItem.)
Public propertyNames
Returns a collection of field names of the configured workspace fields
(Inherited from BaseWorkspace.)
Public propertyPreviewImageInBrowserUrl (Inherited from SPResultRecord.)
Public propertyPreviewInBrowserUrl (Inherited from SPResultRecord.)
Public propertyReadOnly
Returns 'true' if the workspace is currently in read-only mode.
(Overrides BaseWorkspaceReadOnly.)
Public propertyRolePermissionAssignments
Returns the role permission assignments for the workspace.
Public propertyTags
Returns the tags that are currently applied to the item.
(Inherited from SPUpdatable.)
Public propertyTemplate
Returns the workspace template configuration of the workspace.
(Overrides BaseWorkspaceTemplate.)
Public propertyTitle
Returns the workspace title.
(Inherited from BaseWorkspace.)
Public propertyUrl
Returns the URL of the workspace.
(Overrides SPResultRecordUrl.)
Public propertyUserRoleAssignments
Returns the user role assignments for the workspace.
(Overrides BaseWorkspaceUserRoleAssignments.)
Public propertyViewInBrowserUrl (Inherited from SPResultRecord.)
Public propertyWeb
Returns the underlying elevated SPWeb object of the workspace. All actions on this SPWeb instance will be executed as System Account.
Public propertyWorkspaceTag
Returns the workspace tag. Returns null if no workspace tag is configured.
(Inherited from BaseWorkspace.)
Top
Methods
  NameDescription
Public methodArchive
Prepares the workspace for archiving.
Public methodDelete
Deletes the workspace.
(Overrides BaseWorkspaceDelete.)
Public methodDispose
Disposes the workspace.
(Overrides BaseWorkspaceDispose.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetFieldModified
Returns the last modification date for the specified field.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRolesForCurrentUser
Returns the roles for the current user on this workspace.
(Inherited from BaseWorkspace.)
Public methodGetSimpleTags
Returns tags that are currently applied to the item (without accessing tagging service applications).
(Inherited from SPResultRecord.)
Public methodGetTagModified
Returns the last modification date of any of the specified tags.
Public methodGetTags
Returns tags that are currently applied to the item.
(Inherited from SPResultRecord.)
Public methodGetTags(TagType)
Returns tags of the specified type that are currently applied to the item.
(Inherited from SPResultRecord.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVersionFormUrl (Inherited from BaseWorkspace.)
Public methodGetVersions
Returns the workspace versions.
Public methodIsUserInRole
Returns 'true' if the current user is in the specified role on this workspace.
(Overrides BaseWorkspaceIsUserInRole(String).)
Public methodRestore
Restores an archived workspace.
(Overrides BaseWorkspaceRestore.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Writes changes on the workspace.
(Inherited from BaseWorkspace.)
Public methodUpdate(Boolean)
Writes changes on the workspace. If the systemUpdate parameter is specified as 'false', the 'Modified' and 'Modified by' fields will not be changed.
(Inherited from BaseWorkspace.)
Top
Remarks
  • #APIChange: 3.1: removed Workspace(SPWeb web) - now internal, use Workspace(string url) instead
  • #APIChange 3.1: removed internal Workspace(int workspaceItemId, WorkspaceTemplateConfiguration template) - now internal, use public Workspace(string url, WorkspaceTemplateConfiguration template) instead
See Also