LicensingHttpClient.GetUsageRightsAsync Method
Namespace: Microsoft.VisualStudio.Services.Licensing.Client
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Overridable Function GetUsageRightsAsync ( _
rightName As String, _
userState As Object _
) As Task(Of IEnumerable(Of IUsageRight))
public virtual Task<IEnumerable<IUsageRight>> GetUsageRightsAsync(
string rightName,
Object userState
)
public:
virtual Task<IEnumerable<IUsageRight^>^>^ GetUsageRightsAsync(
String^ rightName,
Object^ userState
)
abstract GetUsageRightsAsync :
rightName:string *
userState:Object -> Task<IEnumerable<IUsageRight>>
override GetUsageRightsAsync :
rightName:string *
userState:Object -> Task<IEnumerable<IUsageRight>>
public function GetUsageRightsAsync(
rightName : String,
userState : Object
) : Task<IEnumerable<IUsageRight>>
Parameters
- rightName
Type: System.String
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<IEnumerable<IUsageRight>>
.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.