ProjectPolicy ProjectPolicy ProjectPolicy Class

Definition

public ref class ProjectPolicy
[Microsoft.SharePoint.Client.ClientCallableType(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, FactoryType=typeof(Microsoft.Office.RecordsManagement.InformationPolicy.ProjectPolicyObjectFactory), ObjectIdentityPropertyName="CanonicalId", ServerTypeId="EC5E0A70-0CC3-408f-A4DC-1BB3495AAC75")]
public class ProjectPolicy
Public Class ProjectPolicy
Inheritance
ProjectPolicyProjectPolicyProjectPolicy
Attributes
Microsoft.SharePoint.Client.ClientCallableTypeAttribute

Properties

Description Description Description

Gets the description of the policy.

EmailBody EmailBody EmailBody

Gets or sets the body of the notification email if there is no site mailbox associated with the site.

EmailBodyWithTeamMailbox EmailBodyWithTeamMailbox EmailBodyWithTeamMailbox

Gets or sets the body of the notification email if there is a site mailbox associated with the site.

EmailSubject EmailSubject EmailSubject

Gets or sets the subject of the notification email.

Name Name Name

Gets the name of the policy.

Methods

ApplyProjectPolicy(SPWeb, ProjectPolicy) ApplyProjectPolicy(SPWeb, ProjectPolicy) ApplyProjectPolicy(SPWeb, ProjectPolicy)

Applies the policy to the site.

CloseProject(SPWeb) CloseProject(SPWeb) CloseProject(SPWeb)

Closes the site.

DoesProjectHavePolicy(SPWeb) DoesProjectHavePolicy(SPWeb) DoesProjectHavePolicy(SPWeb)

Check whether the site has a policy applied.

GetCurrentlyAppliedProjectPolicyOnWeb(SPWeb) GetCurrentlyAppliedProjectPolicyOnWeb(SPWeb) GetCurrentlyAppliedProjectPolicyOnWeb(SPWeb)

Returns the policy that is applied on the site.

GetProjectCloseDate(SPWeb) GetProjectCloseDate(SPWeb) GetProjectCloseDate(SPWeb)

Returns the close date of the site.

GetProjectExpirationDate(SPWeb) GetProjectExpirationDate(SPWeb) GetProjectExpirationDate(SPWeb)

Returns the expiration date of the site.

GetProjectPolicies(SPWeb) GetProjectPolicies(SPWeb) GetProjectPolicies(SPWeb)

Returns all policies that are available on the site.

IsProjectClosed(SPWeb) IsProjectClosed(SPWeb) IsProjectClosed(SPWeb)

Check whether the site is closed.

OpenProject(SPWeb) OpenProject(SPWeb) OpenProject(SPWeb)

Open the site.

PostponeProject(SPWeb) PostponeProject(SPWeb) PostponeProject(SPWeb)

Postpone the expiration date of the site based on the policy applied on the site.

SavePolicy() SavePolicy() SavePolicy()

Saves the changes that are made to the current policy.

Extension Methods

ToJson(Object) ToJson(Object) ToJson(Object)

Applies to