C# Класс SonarLint.VisualStudio.Integration.Connection.UriValidator

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
IsInsecureScheme ( Uri uri ) : bool

True if uri's scheme is one of insecureSchemes, false otherwise.

IsSupportedScheme ( Uri uri ) : bool

True if uri's scheme is one of supportedSchemes, false otherwise.

IsValidUri ( Uri uri ) : bool

Whether or not uri is considered to be a valid URI.

Valid URIs must have a scheme listed in supportedSchemes and be absolute.

IsValidUri ( string uriString ) : bool

Whether or not uriString is considered to be a valid URI.

Valid URIs cannot be null, must have a scheme listed in supportedSchemes, and be absolute.

UriValidator ( ) : System
UriValidator ( ISet supportedSchemes ) : System
UriValidator ( ISet supportedSchemes, ISet insecureSchemes ) : System

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

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

True if uri's scheme is one of insecureSchemes, false otherwise.
public IsInsecureScheme ( Uri uri ) : bool
uri System.Uri to check, must not be null.
Результат bool

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

True if uri's scheme is one of supportedSchemes, false otherwise.
public IsSupportedScheme ( Uri uri ) : bool
uri System.Uri to check, must not be null.
Результат bool

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

Whether or not uri is considered to be a valid URI.
Valid URIs must have a scheme listed in supportedSchemes and be absolute.
public IsValidUri ( Uri uri ) : bool
uri System.Uri to check, must not be null.
Результат bool

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

Whether or not uriString is considered to be a valid URI.
Valid URIs cannot be null, must have a scheme listed in supportedSchemes, and be absolute.
public IsValidUri ( string uriString ) : bool
uriString string URI to check
Результат bool

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

public UriValidator ( ) : System
Результат System

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

public UriValidator ( ISet supportedSchemes ) : System
supportedSchemes ISet
Результат System

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

public UriValidator ( ISet supportedSchemes, ISet insecureSchemes ) : System
supportedSchemes ISet
insecureSchemes ISet
Результат System