C# Class Microsoft.Azure.Commands.Insights.Utilities

Static class contaning common functions
Afficher le fichier Open project: Azure/azure-powershell

Méthodes publiques

Méthode Description
ExtractCollectionFromResult ( this enumerator, bool fullDetails, List records, bool>.Func keepTheRecord ) : void
GetCurrentDllFileVersion ( ) : string

Gets the file version of the currently (executing) dll.

GetDefaultDescription ( string artifactName ) : string

Gets a string with a default description for artifacts like alert rules or autoscale settings

ValidateUri ( string uri, string argName = "Uri" ) : void

Checks if the given string represents a valid uri

Method Details

ExtractCollectionFromResult() public static méthode

public static ExtractCollectionFromResult ( this enumerator, bool fullDetails, List records, bool>.Func keepTheRecord ) : void
enumerator this
fullDetails bool
records List
keepTheRecord bool>.Func
Résultat void

GetCurrentDllFileVersion() public static méthode

Gets the file version of the currently (executing) dll.
public static GetCurrentDllFileVersion ( ) : string
Résultat string

GetDefaultDescription() public static méthode

Gets a string with a default description for artifacts like alert rules or autoscale settings
public static GetDefaultDescription ( string artifactName ) : string
artifactName string The name of the artifact to deacribe, e.g.: alert rule, autoscale setting
Résultat string

ValidateUri() public static méthode

Checks if the given string represents a valid uri
public static ValidateUri ( string uri, string argName = "Uri" ) : void
uri string The string representing a uri
argName string The name of the argument to report as invalid
Résultat void