/// <summary>Snippet for GetEnvironment</summary> public void GetEnvironment() { // Snippet: GetEnvironment(string, CallSettings) // Create client CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.Create(); // Initialize request argument(s) string name = "users/[USER]/environments/[ENVIRONMENT]"; // Make the request Environment response = cloudShellServiceClient.GetEnvironment(name); // End snippet }
/// <summary>Snippet for GetEnvironment</summary> public void GetEnvironmentResourceNames() { // Snippet: GetEnvironment(EnvironmentName, CallSettings) // Create client CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.Create(); // Initialize request argument(s) EnvironmentName name = EnvironmentName.FromUserEnvironment("[USER]", "[ENVIRONMENT]"); // Make the request Environment response = cloudShellServiceClient.GetEnvironment(name); // End snippet }
/// <summary>Snippet for GetEnvironment</summary> public void GetEnvironmentRequestObject() { // Snippet: GetEnvironment(GetEnvironmentRequest, CallSettings) // Create client CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.Create(); // Initialize request argument(s) GetEnvironmentRequest request = new GetEnvironmentRequest { EnvironmentName = EnvironmentName.FromUserEnvironment("[USER]", "[ENVIRONMENT]"), }; // Make the request Environment response = cloudShellServiceClient.GetEnvironment(request); // End snippet }