Compartilhar via


SecureStoreProvider.GetTargetApplication Method

Gets the definition of the target application.

Namespace:  Microsoft.Office.SecureStoreService.Server
Assembly:  Microsoft.Office.SecureStoreService (in Microsoft.Office.SecureStoreService.dll)

Syntax

'Declaration
<SecureStorePermissionAttribute(SecurityAction.Demand, Access := SecureStoreAccess.Minimal)> _
<PermissionSetAttribute(SecurityAction.Assert, Name := "FullTrust")> _
Public Function GetTargetApplication ( _
    appId As String _
) As ITargetApplicationDefinition
'Usage
Dim instance As SecureStoreProvider
Dim appId As String
Dim returnValue As ITargetApplicationDefinition

returnValue = instance.GetTargetApplication(appId)
[SecureStorePermissionAttribute(SecurityAction.Demand, Access = SecureStoreAccess.Minimal)]
[PermissionSetAttribute(SecurityAction.Assert, Name = "FullTrust")]
public ITargetApplicationDefinition GetTargetApplication(
    string appId
)

Parameters

Return Value

Type: Microsoft.BusinessData.Infrastructure.SecureStore.ITargetApplicationDefinition
The definition of the target application.

Implements

ISecureStoreProviderExtended.GetTargetApplication(String)

Exceptions

Exception Condition
SecureStoreTargetApplicationNotFoundException

The target application does not exist in the Secure Store.

Remarks

This method gets the definition of the target application using the ITargetApplicationDefinition.

See Also

Reference

SecureStoreProvider Class

SecureStoreProvider Members

Microsoft.Office.SecureStoreService.Server Namespace