| IdentityHasEntitlements Method (Int32, Service, ListInt32) |
Returns true if this Identity is authorized for the specified Service and for
each of the entitlement IDs contained in the specified entitlements.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.25.10.1
Syntaxbool HasEntitlements(
int[] entitlements,
Service service,
List<int> failedEntitlements
)
Function HasEntitlements (
entitlements As Integer(),
service As Service,
failedEntitlements As List(Of Integer)
) As Boolean
bool HasEntitlements(
array<int>^ entitlements,
Service^ service,
List<int>^ failedEntitlements
)
abstract HasEntitlements :
entitlements : int[] *
service : Service *
failedEntitlements : List<int> -> bool
Parameters
- entitlements
- Type: SystemInt32
- service
- Type: Bloomberglp.BlpapiService
- failedEntitlements
- Type: System.Collections.GenericListInt32
Return Value
Type:
Booleantrue if identity is authorized for each of the specified entitlements and
authorized for the specified service, but
false if otherwise.
Exceptions| Exception | Condition |
|---|
| ArgumentException |
The specified 'entitlements' or 'service' is null or invalid.
|
Remarks If the optional failedEntitlements is not null then the
failedEntitlements list is populated with all entitlement ids of the
specified Service that this Identity doesn't have.
See Also