可能需要为用户执行的第一个任务是确定已为当前用户设置的关联应用程序。 可以通过调用 ISSOMapper.GetApplications 来执行此查询。
查询单个 Sign-On 数据库,以获取当前用户可用的应用程序
创建
ISSOMapper的一个新实例。一般来说,
ISSOMapper是一个设计用于从单一 Sign-On(SSO)检索信息的接口。 很可能在许多类似的查询中使用ISSOMapper。通过调用 GetApplications 检索与当前用户关联的所有应用程序。
GetApplications 自动返回当前用户的关联应用程序。
下面的代码示例演示如何查询单一 Sign-On 数据库。
private static string[] Applications=null;
. . .
public static string[] GetCurrentUserApplications()
{
if(Applications==null)
{
string[] descs;
string[] contacts;
ISSOMapper mapper=new ISSOMapper();
mapper.GetApplications(out Applications, out descs, out contacts);
}
return Applications;
}