Class CdnSettings
Defines the CDN Settings for a CDN to provision
Inherited Members
Namespace: PnP.Framework.Provisioning.Model
Assembly: PnP.Framework.dll
Syntax
public class CdnSettings : BaseModel, IProvisioningTemplateDescendant
Constructors
CdnSettings()
Default constructor
Declaration
public CdnSettings()
CdnSettings(CdnOriginCollection)
Custom constructor
Declaration
public CdnSettings(CdnOriginCollection origins)
Parameters
CdnOriginCollection
origins
|
Properties
Enabled
Defines whether the CDN has to be enabled or disabled
Declaration
public Boolean Enabled { get; set; }
Property Value
Boolean
|
ExcludeIfNoScriptDisabled
Allows to opt-out of sites that have disabled NoScript.
Declaration
public String ExcludeIfNoScriptDisabled { get; set; }
Property Value
String
|
ExcludeRestrictedSiteClassifications
Defines the site classifications to exclude of the wild card origins.
Declaration
public String ExcludeRestrictedSiteClassifications { get; set; }
Property Value
String
|
IncludeFileExtensions
Defines the file extensions to include in the CDN policy.
Declaration
public String IncludeFileExtensions { get; set; }
Property Value
String
|
NoDefaultOrigins
Defines whether the CDN should have default origins
Declaration
public Boolean NoDefaultOrigins { get; set; }
Property Value
Boolean
|
Origins
Defines the CDN Origins settings to provision
Declaration
public CdnOriginCollection Origins { get; }
Property Value
CdnOriginCollection
|
Methods
Equals(CdnSettings)
Compares CdnSettings object based on Origins, IncludeFileExtensions, ExcludeRestrictedSiteClassifications, ExcludeIfNoScriptDisabled properties.
Declaration
public bool Equals(CdnSettings other)
Parameters
CdnSettings
other
CdnSettings object |
Returns
System.Boolean
true if the CdnSettings object is equal to the current object; otherwise, false. |
Equals(Object)
Compares object with CdnSettings
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
Object that represents CdnSettings |
Returns
System.Boolean
true if the current object is equal to the CdnSettings |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
System.Int32
Returns HashCode |