Bloomberg API for .NET
HasEntitlements Method (entitlements, service, failedEntitlements)
NamespacesBloomberglp.BlpapiIdentityHasEntitlements(Element, Service, List<(Of <<'(Int32>)>>))
Returns true if the user has the specified entitlements for the specified Service.
Declaration Syntax
C#Visual BasicVisual C++
bool HasEntitlements(
	Element entitlements,
	Service service,
	List<int> failedEntitlements
)
Function HasEntitlements ( 
	entitlements As Element,
	service As Service,
	failedEntitlements As List(Of Integer)
) As Boolean
bool HasEntitlements(
	Element^ entitlements, 
	Service^ service, 
	List<int>^ failedEntitlements
)
Parameters
entitlements (Element)
service (Service)
failedEntitlements (List<(Of <(<'Int32>)>)>)
Return Value
Boolean
true on having entitlements for service and false otherwise.
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.
Exceptions
ExceptionCondition
ArgumentException The specified 'entitlements' or 'service' is null or invalid.

Assembly: Bloomberglp.Blpapi (Module: Bloomberglp.Blpapi.dll) Version: 3.7.4.1