LicensingHttpClient.GetServiceRightsAsync Method
Namespace: Microsoft.VisualStudio.Services.Licensing.Client
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Overridable Function GetServiceRightsAsync ( _
rightName As String, _
userState As Object _
) As Task(Of IEnumerable(Of IServiceRight))
public virtual Task<IEnumerable<IServiceRight>> GetServiceRightsAsync(
string rightName,
Object userState
)
public:
virtual Task<IEnumerable<IServiceRight^>^>^ GetServiceRightsAsync(
String^ rightName,
Object^ userState
)
abstract GetServiceRightsAsync :
rightName:string *
userState:Object -> Task<IEnumerable<IServiceRight>>
override GetServiceRightsAsync :
rightName:string *
userState:Object -> Task<IEnumerable<IServiceRight>>
public function GetServiceRightsAsync(
rightName : String,
userState : Object
) : Task<IEnumerable<IServiceRight>>
Parameters
- rightName
Type: System.String
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<IEnumerable<IServiceRight>>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.