SelfHelpExtensions.GetSolutionResource Method

Definition

Overloads

GetSolutionResource(ArmClient, ResourceIdentifier)

Gets an object representing a SolutionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a SolutionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetSolutionResource(ResourceIdentifier) instead.

GetSolutionResource(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the solution using the applicable solutionResourceName while creating the solution.

  • Request Path: /{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}
  • Operation Id: Solution_Get

GetSolutionResource(ArmClient, ResourceIdentifier)

Source:
SelfHelpExtensions.cs

Gets an object representing a SolutionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a SolutionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetSolutionResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.SelfHelp.SolutionResource GetSolutionResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetSolutionResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.SelfHelp.SolutionResource
<Extension()>
Public Function GetSolutionResource (client As ArmClient, id As ResourceIdentifier) As SolutionResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a SolutionResource object.

Exceptions

client is null.

Applies to

GetSolutionResource(ArmClient, ResourceIdentifier, String, CancellationToken)

Source:
SelfHelpExtensions.cs

Get the solution using the applicable solutionResourceName while creating the solution.

  • Request Path: /{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}
  • Operation Id: Solution_Get
public static Azure.Response<Azure.ResourceManager.SelfHelp.SolutionResource> GetSolutionResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string solutionResourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetSolutionResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SelfHelp.SolutionResource>
<Extension()>
Public Function GetSolutionResource (client As ArmClient, scope As ResourceIdentifier, solutionResourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SolutionResource)

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

solutionResourceName
String

Solution resource Name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client or solutionResourceName is null.

solutionResourceName is an empty string, and was expected to be non-empty.

Applies to