SPCompatibilityRange members

Represents the compatibility range of a SharePoint installation.

The SPCompatibilityRange type exposes the following members.

Constructors

  Name Description
Public method SPCompatibilityRange(String) Initializes a new instance of the SPCompatibilityRange class from a serialization.
Public method SPCompatibilityRange(Int32, Int32) Initializes a new instance of the SPCompatibilityRange class from the given minimum and maximum compatibility values.

Top

Properties

  Name Description
Public propertyStatic member AllVersions Gets all versions that can be supported by this SharePoint installation.
Public property DefaultCompatibilityLevel Gets the default compatibility level for sites being created using this range.
Public propertyStatic member DefaultCompatibilityRange Gets the default compatibility range for the SharePoint installation.
Public property MaxCompatibilityLevel Gets or sets the maximum compatibility level allowed in this range.
Public property MinCompatibilityLevel Gets or sets the minimum compatibility level allowed in this range.
Public propertyStatic member NewVersion Gets a compatibility range object representing only the current major version.
Public propertyStatic member OldVersions Gets a compatibility range object representing all versions except the current one.
Public property Singular Gets whether the compatibility range contains only one compatibility level.

Top

Methods

  Name Description
Public method ConstrainByRange Retrieves a range that is the intersection of the two.
Public method Equals(Object) (Inherited from Object.)
Public method Equals(SPCompatibilityRange) Compares two compatibility range objects by value.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ImposeOnLevel Retrieves a valid compatibility level from the range that is the given level or is closest to the given level.
Public method ImposeOnRange Retrieves a range that is the intersection of the two.
Public method IsValid Checks whether a given compatibility level is valid in this range.
Protected method MemberwiseClone (Inherited from Object.)
Public method Serialize Serializes the compatibility to a string.
Public method ToString (Inherited from Object.)

Top

See also

Reference

SPCompatibilityRange class

Microsoft.SharePoint namespace