你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
GeoFilter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Rules defining user's geo access within a CDN endpoint.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.GeoFilterTypeConverter))]
public class GeoFilter : Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.IGeoFilter
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.GeoFilterTypeConverter))>]
type GeoFilter = class
interface IGeoFilter
interface IJsonSerializable
Public Class GeoFilter
Implements IGeoFilter
- Inheritance
-
GeoFilter
- Attributes
- Implements
Constructors
GeoFilter() |
Creates an new GeoFilter instance. |
Properties
Action |
Action of the geo filter, i.e. allow or block access. |
CountryCode |
Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US. |
RelativePath |
Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of GeoFilter. |
DeserializeFromPSObject(PSObject) | |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.IGeoFilter. |
FromJsonString(String) |
Creates a new instance of GeoFilter, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) | |
ToJsonString() |
Serializes this instance to a json string. |
ToString() |