November Happy Hour will be moved to Thursday December 5th.

Class PartialRestriction

Partial restriction for a license.

Inheritance
System.Object
PartialRestriction
Implements
System.ICloneable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Licensing.RestrictionTypes
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7
Syntax
public class PartialRestriction : RestrictionEntry, ICloneable

Constructors

PartialRestriction()

Declaration
public PartialRestriction()

Properties

Description

The partial restriction type

Declaration
public override string Description { get; }
Property Value
Type Description
System.String
Overrides

Methods

Clone()

Creates a new object that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new object that is a copy of this instance.

Overrides

InternalValidate()

Sets the partial validation on System.Web.HttpContext.Current if exist, otherwise System.Runtime.Remoting.Messaging.CallContext.

Declaration
protected override ValidationResult InternalValidate()
Returns
Type Description
ValidationResult

Valid

Overrides

Restricted(Assembly, String)

Returns true if the license contains the specific partial restriction, otherwise false.

Declaration
public static bool Restricted(Assembly assembly, string licenseName)
Parameters
Type Name Description
System.Reflection.Assembly assembly
System.String licenseName
Returns
Type Description
System.Boolean

Setup()

Setup the instance.

Declaration
public override void Setup()
Overrides

Implements

System.ICloneable

Extension Methods