C# Класс Sage.Configuration.EnvironmentConfiguration

Provides environment configuration options, such as IP address ranges.
Наследование: IXmlConvertible
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
EnvironmentConfiguration ( ) : System

Initializes a new instance of the EnvironmentConfiguration class.

IsBlockedIp ( string clientIpAddress ) : bool

Determines whether the specified clientIpAddress is configured to be blocked.

IsDeveloperIp ( string clientIpAddress ) : bool

Determines whether the specified clientIpAddress is configured to be treated as a developer.

Parse ( XmlElement configuration ) : void
ToXml ( XmlDocument document ) : XmlElement

Приватные методы

Метод Описание
EnvironmentConfiguration ( EnvironmentConfiguration init ) : System

Initializes a new instance of the EnvironmentConfiguration class, using the specified instance to initialize the content of this instance.

Описание методов

EnvironmentConfiguration() публичный Метод

Initializes a new instance of the EnvironmentConfiguration class.
public EnvironmentConfiguration ( ) : System
Результат System

IsBlockedIp() публичный Метод

Determines whether the specified clientIpAddress is configured to be blocked.
public IsBlockedIp ( string clientIpAddress ) : bool
clientIpAddress string The client IP address to test.
Результат bool

IsDeveloperIp() публичный Метод

Determines whether the specified clientIpAddress is configured to be treated as a developer.
public IsDeveloperIp ( string clientIpAddress ) : bool
clientIpAddress string The client IP address to test.
Результат bool

Parse() публичный Метод

public Parse ( XmlElement configuration ) : void
configuration System.Xml.XmlElement
Результат void

ToXml() публичный Метод

public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument
Результат System.Xml.XmlElement