Share via


GeoFilter Class

Definition

Rules defining user's geo access within a CDN endpoint.

public class GeoFilter
type GeoFilter = class
Public Class GeoFilter
Inheritance
GeoFilter

Constructors

GeoFilter()

Initializes a new instance of the GeoFilter class.

GeoFilter(String, GeoFilterActions, IList<String>)

Initializes a new instance of the GeoFilter class.

Properties

Action

Gets or sets action of the geo filter, i.e. allow or block access. Possible values include: 'Block', 'Allow'

CountryCodes

Gets or sets two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.

RelativePath

Gets or sets relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.)

Methods

Validate()

Validate the object.

Applies to