Domain Detective

API Reference

Class

PublicSuffixList

Namespace DomainDetective

Provides utilities for working with the public suffix list.

Inheritance

  • Object
  • PublicSuffixList

Methods

IsPublicSuffix(System.String domain) #

Determines whether the provided domain is a public suffix.

Parameters

domain System.String required
Load 2 overloads
Load(System.String filePath) #

Loads the public suffix list from the specified file.

Parameters

filePath System.String required
Load(System.IO.Stream stream) #

Loads the public suffix list from an open Stream.

Parameters

stream System.IO.Stream required
Stream containing the list data.

Returns

An initialized PublicSuffixList instance.

LoadFromUrlAsync(System.String url) #

Downloads and loads the public suffix list from the given URL.

Parameters

url System.String required
HTTP or HTTPS address of the list.

Returns

A task representing the asynchronous operation.

{{ include "footer" }}