SelfHelpExtensions.GetSolutionResource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
|
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
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
- 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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for