C# Class Microsoft.Azure.Commands.Common.Authentication.Models.AzureRMProfile

Inheritance: IAzureProfile
Show file Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Property Type Description
Load void

Public Methods

Method Description
AzureRMProfile ( ) : Newtonsoft.Json

Creates new instance of AzureRMProfile.

AzureRMProfile ( string path ) : Newtonsoft.Json

Initializes a new instance of AzureRMProfile and loads its content from specified path.

Save ( ) : void

Writes profile to the disk it was opened from disk.

Save ( string path ) : void

Writes profile to a specified path.

ToString ( ) : string

Serializes the current profile and return its contents.

Private Methods

Method Description
Load ( string path ) : void

Method Details

AzureRMProfile() public method

Creates new instance of AzureRMProfile.
public AzureRMProfile ( ) : Newtonsoft.Json
return Newtonsoft.Json

AzureRMProfile() public method

Initializes a new instance of AzureRMProfile and loads its content from specified path.
public AzureRMProfile ( string path ) : Newtonsoft.Json
path string The location of profile file on disk.
return Newtonsoft.Json

Save() public method

Writes profile to the disk it was opened from disk.
public Save ( ) : void
return void

Save() public method

Writes profile to a specified path.
public Save ( string path ) : void
path string File path on disk to save profile to
return void

ToString() public method

Serializes the current profile and return its contents.
public ToString ( ) : string
return string