Condividi tramite


ISecureStoreServiceApplication.SetUserCredentials Method

Sets the credentials for the specified user, target application, and partition.

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

Syntax

'Declaration
<FaultContractAttribute(GetType(ArgumentException))> _
<FaultContractAttribute(GetType(ArgumentNullException))> _
<OperationContractAttribute> _
<FaultContractAttribute(GetType(SecureStoreServiceFault))> _
<FaultContractAttribute(GetType(SecureStoreServiceTargetApplicationNotFoundFault))> _
Sub SetUserCredentials ( _
    rawPartitionId As Guid, _
    applicationId As String, _
    claim As SecureStoreServiceClaim, _
    credentials As SerializableSecureStoreCredentialCollection _
)
'Usage
Dim instance As ISecureStoreServiceApplication
Dim rawPartitionId As Guid
Dim applicationId As String
Dim claim As SecureStoreServiceClaim
Dim credentials As SerializableSecureStoreCredentialCollection

instance.SetUserCredentials(rawPartitionId, _
    applicationId, claim, credentials)
[FaultContractAttribute(typeof(ArgumentException))]
[FaultContractAttribute(typeof(ArgumentNullException))]
[OperationContractAttribute]
[FaultContractAttribute(typeof(SecureStoreServiceFault))]
[FaultContractAttribute(typeof(SecureStoreServiceTargetApplicationNotFoundFault))]
void SetUserCredentials(
    Guid rawPartitionId,
    string applicationId,
    SecureStoreServiceClaim claim,
    SerializableSecureStoreCredentialCollection credentials
)

Parameters

  • rawPartitionId
    Type: System.Guid

    A GUID that represents the partition ID.

Remarks

Administrators of the target application can call this method to set the credentials for the specified user.

See Also

Reference

ISecureStoreServiceApplication Interface

ISecureStoreServiceApplication Members

Microsoft.Office.SecureStoreService.Server Namespace