Метод SecureStoreProvider.GetRestrictedCredentials
Возвращает учетные данные для ограниченных конечного приложения, используя идентификатор указанного целевого приложения.
Пространство имен: Microsoft.Office.SecureStoreService.Server
Сборка: Microsoft.Office.SecureStoreService (в Microsoft.Office.SecureStoreService.dll)
Синтаксис
'Декларация
<PermissionSetAttribute(SecurityAction.Assert, Name := "FullTrust")> _
<SecureStorePermissionAttribute(SecurityAction.Demand, Access := SecureStoreAccess.RestrictedCredentials)> _
Public Function GetRestrictedCredentials ( _
appId As String _
) As SecureStoreCredentialCollection
'Применение
Dim instance As SecureStoreProvider
Dim appId As String
Dim returnValue As SecureStoreCredentialCollection
returnValue = instance.GetRestrictedCredentials(appId)
[PermissionSetAttribute(SecurityAction.Assert, Name = "FullTrust")]
[SecureStorePermissionAttribute(SecurityAction.Demand, Access = SecureStoreAccess.RestrictedCredentials)]
public SecureStoreCredentialCollection GetRestrictedCredentials(
string appId
)
Параметры
appId
Тип: System.StringИдентификатор ограниченного целевого приложения.
Возвращаемое значение
Тип: Microsoft.BusinessData.Infrastructure.SecureStore.SecureStoreCredentialCollection
Набор учетных данных для ограниченного целевого приложения.
Реализации
ISecureStoreProvider.GetRestrictedCredentials(String)
Исключения
Исключение | Условие |
---|---|
SecureStoreCredentialsNotFoundException | Учетные данные не доступны для указанного конечного приложения. |
SecureStoreTargetApplicationNotFoundException | Конечное приложение не существует в Secure Store. |
См. также
Справочные материалы
Пространство имен Microsoft.Office.SecureStoreService.Server