 | AdoIdentityProviderAddClaim Method |
Adds a claim to the specified user account
Namespace: SanteDB.Persistence.Data.ServicesAssembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntaxpublic void AddClaim(
string userName,
IClaim claim,
IPrincipal principal,
TimeSpan? expiry = null
)
Public Sub AddClaim (
userName As String,
claim As IClaim,
principal As IPrincipal,
Optional expiry As TimeSpan? = Nothing
)
public:
virtual void AddClaim(
String^ userName,
IClaim^ claim,
IPrincipal^ principal,
Nullable<TimeSpan> expiry = nullptr
) sealed
abstract AddClaim :
userName : string *
claim : IClaim *
principal : IPrincipal *
?expiry : Nullable<TimeSpan>
(* Defaults:
let _expiry = defaultArg expiry null
*)
-> unit
override AddClaim :
userName : string *
claim : IClaim *
principal : IPrincipal *
?expiry : Nullable<TimeSpan>
(* Defaults:
let _expiry = defaultArg expiry null
*)
-> unit Parameters
- userName String
- The user for which the claim is to be persisted
- claim IClaim
- The claim which is to be persisted
- principal IPrincipal
- The principal which is adding the claim (the authority under which the claim is being added)
- expiry NullableTimeSpan (Optional)
- The expiration time for the claim
Implements
IIdentityProviderServiceAddClaim(String, IClaim, IPrincipal, NullableTimeSpan)
See Also