C# Class SonarLint.VisualStudio.Integration.Connection.UriValidator

Afficher le fichier Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

IsInsecureScheme() public méthode

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.
Résultat bool

IsSupportedScheme() public méthode

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.
Résultat bool

IsValidUri() public méthode

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.
Résultat bool

IsValidUri() public méthode

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
Résultat bool

UriValidator() public méthode

public UriValidator ( ) : System
Résultat System

UriValidator() public méthode

public UriValidator ( ISet supportedSchemes ) : System
supportedSchemes ISet
Résultat System

UriValidator() public méthode

public UriValidator ( ISet supportedSchemes, ISet insecureSchemes ) : System
supportedSchemes ISet
insecureSchemes ISet
Résultat System