SqlExtensions.GetSqlServerTrustGroup 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.
Gets a server trust group. <item> Mocking. To mock this method, please mock GetSqlServerTrustGroup(AzureLocation, String, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.Sql.SqlServerTrustGroupResource> GetSqlServerTrustGroup(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation locationName, string serverTrustGroupName, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlServerTrustGroup : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.SqlServerTrustGroupResource>
<Extension()>
Public Function GetSqlServerTrustGroup (resourceGroupResource As ResourceGroupResource, locationName As AzureLocation, serverTrustGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SqlServerTrustGroupResource)
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- locationName
- AzureLocation
The locationName for the resource.
- serverTrustGroupName
- String
The name of the server trust group.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
serverTrustGroupName is an empty string, and was expected to be non-empty.
resourceGroupResource is null.