Collapse All Expand All | Language Filter: Visual Basic Language Filter: C#Language Filter: Visual C++Language Filter: JavaScript Visual Basic C# Visual C++ JavaScript | Example | See Also
.NET Framework Class Library
User..::HasSecurityKeys Method

BMXNET 4.0 Developer API

Return a list of keys that the user does NOT have. If the user has all of the keys then an empty list is returned

Namespace: IndianHealthService.BMXNet.Model
Assembly: BMXNET40 (in BMXNET40.dll)

# Syntax

| C# |  |  | Visual Basic |  |  | Visual C++ |

    List<string> HasSecurityKeys(
    	string[] keys
    )

    Function HasSecurityKeys ( _
    	keys As String() _
    ) As List(Of String)

    List<String^>^ HasSecurityKeys(
    	array<String^>^ keys
    )

#### Parameters

keys
  array< String >[]()[]
  a list of keys to compare against the user's keys

#### Return Value

A list of keys the user does not have, empty of the user has them all

# Remarks

The HasSecurityKeys appraoch does not give those with PROGMODE a free-pass since it compares the actual keys. HasSecurityKeys uses RequestKeys

# Examples

List<String> missingKeys=aUser.HasSecurityKeys(new string[] { "Key1","Key2" }); if (missingKeys.Count==0) { //Take a secured path } else { MessageBox.Show(missingKeys); }

# See Also

User Interface
IndianHealthService.BMXNet.Model Namespace